Since, Density ρ = Mass/ volume
i.e, Mass, M = ρ X V =
Given, R = R'/2 , where R' is the radius of the earth= 6.4 X 106 m.
Since, average density of earth = 5.5 X 103 kg m-3.
Where, G = 6.67 X 10-11 N m2 kg-2
Put value of G, R and ρ in eq. 1 to get your answer.