Answer
Please see the work below.
Work Step by Step
We know that
$h=\frac{v^2}{2g}$
The above equation shows that height is inversely proportional to g
$\implies h_{mars}=(\frac{g_{earth}}{g_{mars}})h_{earth}$
We plug in the known values to obtain:
$h_{mars}=(\frac{9.81}{3.74})(2.45)$
$h_{mars}=6.43m$
(b) We know that
$\implies h_{moon}=(\frac{g_{earth}}{g_{moon}})h_{earth}$
We plug in the known values to obtain:
$h_{moon}=(\frac{9.81}{1.62})(2.45)$
$h_{moon}=14.8m$