As body is thrown upwards with kinetic energy of $490 \,J$, so at maximum height it converts
wholly to potential energy ie,
$U_{\max }=490 \,J$
Let at height $h^{'}$, it becomes just half.
$m g h^{'} =\frac{U_{\max }}{2} $
or $h^{'} =\frac{490}{2 \times 2 \times 9.8}=12.5\, m$