Answer
$h=\frac{S-2\pi r^2}{2\pi r}$
Work Step by Step
The given formula is
$\Rightarrow S=2\pi r^2+2\pi rh$
Subtract $2\pi r^2$ from each side.
$\Rightarrow S-2\pi r^2=2\pi r^2+2\pi rh-2\pi r^2$
Simplify.
$\Rightarrow S-2\pi r^2=2\pi rh$
Divide each side by $2\pi r$.
$\Rightarrow \frac{S-2\pi r^2}{2\pi r}=\frac{2\pi rh}{2\pi r}$
Simplify.
$\Rightarrow \frac{S-2\pi r^2}{2\pi r}=h$
Hence, the solution is $h=\frac{S-2\pi r^2}{2\pi r}$.