Answer Explanation
Conserve the net gravitational potential energy and the kinetic energy of the two body system initially, when they are released and at the instant when they are 0.5 m apart.
Initial potential energy = -G(10)(20)/1 = -Gm
1m
2/r
Initial kinetic energy = 0.
Final potential energy = -G(10)(20)/0.5
Final kinetic energy = 1/2 (10)(v
12) + 1/2(20)(v
22)
Now equate net initial energy to the net final energy.
You can get another equation by conserving the linear momentum of the two mass system (as no external force acts on it).
Initial linear momentum = 0.
Final linear momentum = 10(v
1) + 20(-v
2)
Solve these equations (energy and momentum conservation) to get v
1 and v
2.