I have been working on this for some time now. So you have three masses m, M, and m3 (these values are known). The distance between m and M is d (this is known). m3 lies between m and M. What I am trying to figure out is the position of m3. I have defined the distance between m and m3 as r1 and the distance between m3 and M as r2. r1 = d - r2. So I have come up with this (using Newton's law of universal gravitation):
$$F = \frac{GMm_3}{r_2} - \frac{Gmm_3}{d-r_2}.$$
So I need to solve for r2 in order to find the position. Is this correct? How do I solve for r2?