(b) Let $v$ be the velocity acquired by the body at $B$ which will be moving making an angle $45{^\circ}$ with the horizontal direction. As the body just crosses the well so $\frac{v^{2}}{g} = 40$
or $v^{2} = 40g = 40 \times 10 = 400$
or $v = 20\ ms^{- 1}$
Taking motion of the body from $A$ to $B$ along the inclined plane we have
$u = v_{0},a = - g\sin{45{^\circ} = - \frac{10}{\sqrt{2}}}ms^{- 2}$
$s = 20m,v = 20ms^{- 1}$
As $v^{2} = u^{2} + 2as$
$\therefore\ 400 = v_{0}^{2} + 2\left( - \frac{10}{\sqrt{2}} \right) \times 20\sqrt{2}$
or $v_{0}^{2} = 400 + 400 = 800$ or $v = 20\sqrt{2}ms^{- 1}$