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 6 dollars per foot, and the material for the fourth side costs 16 dollars per foot. Find the dimensions of the enclosure that is most economical to construct.