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} $$