STEP 1: find height $ h $
To find height $ h $ use Pythagorean Theorem:
$$ h^2 + \frac{ a^2 }{ 4 } = s^2 $$After substituting $a = 12\, \text{cm}$ and $s = 18\, \text{cm}$ we have:
$$ h ^ {\,2} + \frac{ \left( 12\, \text{cm} \right)^{2} }{ 4 } = \left( 18\, \text{cm} \right)^{2} $$ $$ h ^ {\,2} + \frac{ 144\, \text{cm}^2 }{ 4 } = \left( 18\, \text{cm} \right)^{2} $$ $$ h ^ {\,2} + 36\, \text{cm}^2 = \left( 18\, \text{cm} \right)^{2} $$ $$ h ^ {\,2} = 324\, \text{cm}^2 - 36\, \text{cm}^2 $$ $$ h ^ {\,2} = 288\, \text{cm}^2 $$ $$ h = \sqrt{ 288\, \text{cm}^2 } $$$$ h = 12 \sqrt{ 2 }\, \text{cm} $$STEP 2: find volume $ V $
To find volume $ V $ use formula:
$$ V = \dfrac{ a ^{ 2 } \cdot h }{ 3 } $$After substituting $a = 12\, \text{cm}$ and $h = 12 \sqrt{ 2 }\, \text{cm}$ we have:
$$ V = \dfrac{ 144\, \text{cm}^2 \cdot 12 \sqrt{ 2 }\, \text{cm} }{ 3 }$$$$ V = \dfrac{ 1728 \sqrt{ 2 }\, \text{cm}^3 }{ 3 } $$$$ V = 576 \sqrt{ 2 }\, \text{cm}^3 $$