a closed rectangular box with a square base and volume 12 cubic feet is to be constructed using two different types of materials. the top is made of metal costing $2 per square foot, and the remaining sides and the base are made of wood costing $1 per square foot. find the dimensions of the box that minimizes the cost of construction.