a fence is to be built to enclose a rectangular area of 240 sq ft. the fence along three sides is to be made of material that costs $5 per foot and the material of the fourth side costs $12 per foot. find the length and width of the enclosure that is most economical to construct