Answer:
g=m/R-h²
Explanation:
Rg = m+h²g
 Rg-h²g=m 
by transposing h²g to the other side of the equation it has acquired a negative sign.
 after this you factorise the left side.
g(R-h²)=m
 now you divide both sides of the equation by R-h². The reason for doing so is because you're trying to single out g. 
g=m/R-h²