Ok, let me show you what I did before posting here.
F = \frac{{Gm_1 m_2 }}{{r^2 }}
But
m_1 = 1, m_2 = 1
and
F = ma
So:
a = \frac{G}{{r^2 }}
Now, r is the distance between the two masses, so taking the initial position of the first mass as the origin, r can be expressed as:
r = d_2 -...