I've been struggling to solve this problem and I'm still unable to get the right answer. I keep getting a ratio that is bigger than one and I'm not sure what I'm doing wrong.
The question is the following: The largest possible ball is placed inside a right circular cone. What is the ratio of the ball's volume to the cone's volume, when the cone's radius is $r$ and the slant height is $2r$?
Thanks a lot in advance!

A section of the cone is an equilateral triangle and the inradius of an equilateral triangle equals $\frac{1}{2\sqrt{3}}$ times its side length. It follows that the volume of the cone is $\frac{\pi r^2}{3}\cdot\sqrt{3} r=\frac{\pi}{\sqrt{3}}r^3$ and the volume of the largest inscribed sphere is $\frac{4\pi}{3}\left(\frac{r}{\sqrt{3}}\right)^3 = \frac{4\pi}{9\sqrt{3}}r^3.$ The wanted ratio is so $\color{red}{\frac{4}{9}}$.