The gravitational force between <em>m₁</em> and <em>m₂</em> has magnitude
while the gravitational force between <em>m₁</em> and <em>m₃</em> has magnitude
where <em>x</em> is measured in m.
The mass <em>m₁</em> is attracted to <em>m₂</em> in one direction, and attracted to <em>m₃</em> in the opposite direction such that <em>m₁</em> in equilibrium. So by Newton's second law, we have
Solve for <em>x</em> :
The solution with the negative square root is negative, so we throw it out. The other is the one we want,