Mass of earth 5.98e24

g=GM/r^2
solve for r

r^2 = GM/g

now just plug and chug if you want an actual number ...