A closed box with square base is to be built. the bottom and the top of the box are to be made of a material costing $2/ft^2, and all four sides are to be made of a material costing $1/ft^2. what are the dimensions of the box of the greatest value that can be constructed for $12?