The formula for acceleration due to gravity is
g=R2GM
Let the density of earth and planet be ρ, and the radius of the planet be R′. Let R be the radius of the earth and g be the acceleration due to gravity of earth and g′ be the acceleration due to gravity of planet.
So, the masses are
M=34πR3ρ...(i)
M′=34π(R′)3ρ...(ii)
So, gg′=R2GMR′2GM′=MM′(R′R)2...(iii)
From equation (i) and (ii) we get R′=231R
Substituting the value in equation (iii),
gg′=(21)23−2=231g
Weight is given by W′=mg′=231W