A square-based shipping crate is designed to have a volume of 18 ft^3.
The material for the base costs twice and that for the top half
as much (per sqaure foot) as the material used for the sides. What are the
dimensions of the crate that minimize the cost of materials?