If the garden is to be 2450 square feet, and the fence along the driveway costs $6 per foot while on the other three sides it costs only $2 per foot, find the dimensions that will minimize the cost.