As per the question,
Internal diameter of hollow spherical shell $=6cm$
Then, the internal radius of hollow spherical shell $=6/2=3cm=r$
External diameter of hollow spherical shell $=10cm$
Therefore, the external diameter of hollow spherical shell $=10/2=5cm=R$
Diameter of the cylinder $=14cm$
Now, the radius of cylinder $=14/2=7cm$
Assume the height of cylinder be taken as h cm
Now, according to the question we have
Volume of cylinder $=$ Volume of spherical shell
$\pi \times {{r}^{2}}\times h=4/3\pi \times \left( {{R}^{3}}-{{r}^{3}} \right)$
$\pi \times {{7}^{2}}\times h=4/3\pi \times \left( {{5}^{3}}-{{3}^{3}} \right)$
$h=4/3\times 2$
$h=8/3cm$
Therefore, the height of the cylinder $=8/3cm$