Gravitational force on spaceship is given by equation

here
= masses of two objects
r = distance between their centers
now it is given that gravitation force due to earth is two times the force of gravitation due to moon





given that
d = 384000 km
now from above equation

r = 269875.5 km
so the distance from earth will be 269875.5 km