17: One possible setup is to denote the radius of the base of the cylinder as r and its height as h. The quantity to be optimized is

There is one variable too much. Use some constraint present in the problem to get rid of one variable and set up a one-variable optimization problem.

Next hint
Answer