A closed rectangular container with a square base is to have a volume of 125 in. The material for the top and bottom of the container will cost $3 per in, and the material for the sides will cost $3 per in. Find the dimensions of the container of least cost.

Side of Base (in)=
Height (in)=

You can earn partial credit on this problem.