A planet has twice the density of earth but the acceleration due to gravity on its surface is exactly the same as on the surface of earth. Its radius in terms of radius of earth R will be:
Acceleration due to gravity 'g' in terms of mean density of the Earth 'd' and radius 'R' is:
(G is universal gravitational constant)