I would appreciate help on this question:In constructing a cylindrical can of given volume, nothing is wasted in making the side of the can. But the top and bottom are cut from square sheets and the remainder are wasted. Find the ratio of h to r so that the material used is a minimum.

I've tried several methods but i can't seem to find a practical solution. Please help. Thanks