Find the center of mass of two objects, one of mass M and one of mass m, separated by distance L?

At R1 = L * (1 - m/(m+M)) from m and R2 = m * L/(m+M) from M

At R1 = L^2 x (1 - m/(m+M)) from m and R2 = m * L^2/(m+M) from M

At R1 = m * L/(m+M) from m and R2 = L * (1 - m/(m+M)) from M

At R1 = L * (1 + m/(m+M)) from m and R2 = m * L/(m+M) from M

At R1 = L * (1 - m/(m-M)) from m and R2 = m * L/(m-M) from M

Any tips? I know center of mass must be

(m*d + m2*d2 ) / (m+m2) but how does this work here? Thanks

in your case, d2=L-d1