The easiest way to answer this question is by realizing there are relating the velocities of the two cars. To tackle this problem, you have to understand the picture. Car 1 travels at 35m/s and Car 2 travels at 25m/s. Based on relative velocities, we can understand that Car 1 travels 10m/s faster than Car 2 every second. So we can interpret Car 1's relative velocity to Car 2 as 10m/s. Car 1 needs to travel 10m/s till a point of catching up to Car 2 which is 462m away.
v = 10m/s
d = 462m
v = d/t
(10) = (462)/t
t = 46.2s
So it takes 46.2 seconds for Car 1 to catch up to Car 2, but the question is asking how far does Car 1 travel to catch up. So we have to use Car 1's velocity and not the relative velocity:
we have to use newtons law of gravitation which is F=GMm/r^2 G=6.67 x 10^<span>-11N kg^2/m^2 </span>M=<span>(15kg) </span>m=15 kg r=(3.0m)^2<span> </span>putting values we have <span>=(6.67 x 10^-11N kg^2/m^2)(15kg)(15kg)/(3.0m)^2 </span> =1.67 x 10^-9N