To find side $ a $ use Pythagorean Theorem:
$$ s^2 + \frac{ a^2 }{ 4 } = e^2 $$After substituting $s = 18\, \text{cm}$ and $e = 12\, \text{cm}$ we have:
$$ \left( 18\, \text{cm} \right)^{2} + \frac{ a^2 }{ 4 } = \left( 12\, \text{cm} \right)^{2} $$ $$ \frac{ a^2 }{ 4 } = \left( 12\, \text{cm} \right)^{2} - \left( 18\, \text{cm} \right)^{2} $$ $$ \frac{ a^2 }{ 4 } = 144\, \text{cm}^2 - 324\, \text{cm}^2 $$ $$ a^2 = -180\, \text{cm}^2 \cdot 4 $$ $$ a^2 = -720\, \text{cm}^2 $$This equation has no solution $ \Longrightarrow $ The problem has no solution.