(a) According of law of gravitation, the force of attraction acting on the body due to earth is given by
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ F = G\frac{Mm}{R^{2}}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ldots.(i)$
The acceleration due to gravity $g$ in the body arises due to the force $F$ from Newton’s second law of motion, we have
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ F = mg\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ldots(ii)$
From Eqs. (i) and (ii), we get
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ mg = G\frac{Mm}{R^{2}}$
$\Longrightarrow \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ g = \frac{GM}{R^{2}}$