The formula to calculate the mass (M) of any planet of radius R and density ρ, considering it to be a sphere, is given by
M=34πR3ρ.....................(1)
The escape velocity (vA) for planet A can be expressed as
VA===RA2GMARA2GρA34πRA3CρA.RA............................(2)
where, G is Gravitational constant and C=38πG is a constant.
Similarly, the escape velocity (vB) of planet B can be expressed as
vB=CρBRB......................(3)
Divide equation (2) by equation (3) and solve with the known parameters to obtain the ratio of the densities of the planets.
VBVAρBρAρBρA=====CρBRBCρARAVBRAVARB(VBRAVARB)2(21×13)249............................(4)
The acceleration due to gravity (gA) for planet A is given by
gA===RA2GMARA2G34πRA3×ρA2C2ρARA..........................(5)
Similarly, the acceleration due to gravity (gB) can be expressed as
gB=2C2ρBRB...........................(6)
Divide equation (5) by equation (6) and solve with the help of known parameters to calculate the required ratio of the accelerations due to gravity in both the planets.
gBgA====2C2ρBRB2C2ρARAρBρARBRA49×3143
=41×R1R2=43