Hi !
To get the same answer, you need a specefic formula that you can find by following this link :
Alloprof aide aux devoirs | AlloprofGrâce à ses services d’accompagnement gratuits et stimulants, Alloprof engage les élèves et leurs parents dans la réussite éducative.The link is in french, but you just need to look at the formula :
g=r2G⋅mIn this case, the only thing you need to know is that \(r\) is the distance between the core of the planet and the altitude. Knowing that we're comparing to point for the same planet, \(G\) and \(m\) are the same. Now you can calculate the \(g\) for each situation. The first one is at the surface :
g1=r12G⋅mThe second situation will be like this :
g2=r22G⋅mIf you try to put the first formula in the second one (replace \(G\cdot m\)), you will get this :
G⋅m=r12g1g2=r22r12g1=r12×r22g1We know that \(g_1\) is 9.8, but we don't know the value for \(r_1\) and \(r_2\). We will assume that \(r_1\) is equal to one. This means that \(r_2\) is equal to 4 :

You can now enter the values to obtain this final form :
g2=(1)2×(4)29.8=(4)29.8It gives you the same answer than your notes ! If you have any other questions, do not hesitate !