To find height $ h $ use formula:
$$ V = \dfrac{ r ^{ 2 } \cdot h \cdot \pi}{ 3 } $$After substituting $ V = 30 $ and $ r = 2 $ we have:
$$ 30 = \dfrac{ 2 ^{ 2 } \cdot h \cdot \pi}{ 3 } $$$$ 30 \cdot 3 = 2 ^{ 2 } \cdot h \cdot \pi $$$$ 90 = 4 \cdot h \cdot \pi $$$$ h = \dfrac{ 90 }{ 4 \, \pi} $$$$ h = 7.162 $$