The gravitational force between m₁ and m₂ has magnitude

while the gravitational force between m₁ and m₃ has magnitude

where x is measured in m.
The mass m₁ is attracted to m₂ in one direction, and attracted to m₃ in the opposite direction such that m₁ in equilibrium. So by Newton's second law, we have

Solve for x :

The solution with the negative square root is negative, so we throw it out. The other is the one we want,
