To find slant height $ s $ use Pythagorean Theorem:
$$ h^2 + \frac{ a^2 }{ 4 } = s^2 $$After substituting $ h = 24.7 $ and $ a = 40 $ we have:
$$ 24.7^2 + \frac{ 40^2 }{ 4 }= s^2 $$ $$ 610.09 + \frac{ 1600 }{ 4 }= s^2 $$ $$ 610.09 + 400 = s^2 $$ $$ s^2 = 1010.09 $$ $$ s = \sqrt{ 1010.09 } $$$$ s = 31.7819 $$