To find height $ h $ use formula:
$$ V = \dfrac{ h ^{ 2 } \cdot r \cdot \pi}{ 3 } $$After substituting $V = 18\, \text{cm}$ and $r = 6\, \text{cm}$ we have:
$$ 18\, \text{cm} = \dfrac{ h ^{ 2 } \cdot \left( 6\, \text{cm} \right)^{4} \cdot \pi}{ 3 } $$$$ 18\, \text{cm} \cdot 3 = h ^{ 2 } \cdot \left( 6\, \text{cm} \right)^{4} \cdot \pi $$$$ 54\, \text{cm} = 6\, \text{cm} \cdot h ^{ 2 } \cdot \pi $$$$ h ^{ 2 } = \dfrac{ 54\, \text{cm}}{ 6\, \text{cm} \, \pi } $$$$ h ^{ 2 } \approx 2.8648 $$$$ h \approx \sqrt{ 2.8648 } $$$$ h \approx 1.6926 $$