Imagine a new planet having the same density as that of earth but it is 3 times bigger than the size of the earth. If acceleration due to gravity on the surface of the earth is g and that on the surface of the new planet is g', then
We know that,
or