A closed rectangular chest with a square base and a volume of 1500 cubic inches is to be constructed of two different types of materials. The top is made of metal costing $10 per square inch. And the remainder is made of wood costing $5 per square inch. Find the dimensions of the box for which the cost of the materials is minimized.