a fence is to be built to enclose a rectangular area of 310 square feet. the fence along three sides is to be made of material that costs 4 dollars per foot, and the material for the fourth side costs 14 dollars per foot. find the dimensions of the enclosure that is most economical to construct.