To find slant height $ s $ use Pythagorean Theorem:
$$ h^2 + \frac{ a^2 }{ 4 } = s^2 $$After substituting $ h = 12.35 $ and $ a = 40 $ we have:
$$ 12.35^2 + \frac{ 40^2 }{ 4 }= s^2 $$ $$ 152.5225 + \frac{ 1600 }{ 4 }= s^2 $$ $$ 152.5225 + 400 = s^2 $$ $$ s^2 = 552.5225 $$ $$ s = \sqrt{ 552.5225 } $$$$ s = 23.5058 $$