[tex]S=2\pi r^2+2\pi rh\\\\2\pi rh+2\pi r^2=S\ \ \ \ \ \ |subtract\ 2\pi r^2\ from\ both\ sides\\\\2\pi rh=S-2\pi r^2\ \ \ \ \ \ \ |divide\ both\ sides\ by\ 2\pi r\\\\\boxed{h=\frac{S-2\pi r^2}{2\pi r}}\\\\S=50;\ r=3\\\\\boxed{h=\frac{50-2\pi\cdot3^2}{2\pi\cdot3}=\frac{50-2\pi\cdot9}{6\pi}=\frac{50-18\pi}{6\pi}} < 0-no\ sense\\\\I\ think...\ S\ not\ equal\ 50!!![/tex]