The Force of Gravity between two objects is given by

So the force of the earth on the ship is

and the force of the moon on the ship is

where is the mass of the ship

and where is the mass of the earth

and where is the mass of the moon

and where is the distance half way inbetween

and is gravitational constant

so

Just plug in the numbers to finish...