a closed rectangular box with a square base is to have a volume of 300 in3. the material for the top and bottom of the container will cost $2 per in2 and the material for the sides will cost $6 per in2. find the dimensions of the box which minimize cost