A landscape architect wished to enclose a rectangular garden on one side by a brick wall costing $30/ft and on the other three sides by a metal fence costing $20/ft. If the area of the garden is 42 square feet, find the dimensions of the garden that minimize the cost.
Length of side with bricks
Length of adjacent side
You can earn partial credit on this problem.