A cylindrical container must be constructed to hold two spheres of diameters $30$ cm and $20$ cm. The base must fit perfectly to a sphere of $30$ cm in diameter. What is the smallest possible height of the cylinder to fit the two spheres?
Comments: Placing the sphere with diameter $30$ and then with diameter $20,$ the upper sphere will move $5$ cm sideways to the cylinder wall. How to find the difference in heights?
Ps: Sorry for any mistakes in English.

$GE = 15 + 10 = 25$
$EK = EI - GJ = 15-10 = 5$
$GK = \sqrt{25^2 - 5^2} = 10\sqrt6$
So, height of the cylinder $= BI + GK + JA = 15 + 10\sqrt6 + 10 = 25 + 10\sqrt6 \approx 49.49 \lt 50$