Use the fact that the formula for the surface area of a right circular cylinder is $A=2\pi r h + 2 \pi r^2$:
$$
10^2=2\pi r h + 2 \pi r^2
$$
Then express $h$ as a function of $r$ and use the formula for the volume of a right circular cylinder:
$$
h(r)=\frac{50}{\pi r}-r\\
V(r)=\pi r^2 h(r) = \pi r^2 \left(\frac{50}{\pi r}-r \right)=50r-\pi r^3,\ 0\lt r\lt \sqrt\frac{50}{\pi}$$
Now, just find what $r$ makes the function $V(r)$ attain the maximum value. For that, set the first derivative of $V(r)$ equal to zero and solve for $r$: $V'(r)=50-3\pi r^2=0\implies r=\sqrt{\frac{50}{3\pi}}$. When you find the $r$, it's going to be trivial to find $h$: $h\left(\sqrt{\frac{50}{3\pi}}\right)$.