A landscape architect wished to enclose a rectangular garden on one side by a brick wall costing $20/ft and on the other three sides by a metal fence costing $10/ft. if the area of the garden is 22 square feet, find the dimensions of the garden that minimize the cost.