The rectangular garden with the area of 2050 square feet is to be situated next to the barn with fencing on 3 sides and barn acting as fourth side. Write the function that provides length of fencing needed if length of side parellel to barn is x. Determine dimensions of garden using minimum amount of fence.