To find height $ h $ use formula:
$$ V = \dfrac{ a ^{ 2 } \cdot h }{ 3 } $$After substituting $ V = 15 $ and $ a = 3 $ we have:
$$ 15 = \dfrac{ 3 ^{ 2 } \cdot h }{ 3 } $$$$ 15 \cdot 3 = 3 ^{ 2 } \cdot h $$$$ 45 = 9 \cdot h $$$$ h = \dfrac{ 45 }{ 9 } $$$$ h = 5 $$