first car travels at 60kmph i.e., 50/3 metres per second.
second car travels at 42kmph i.e., 35/3 meters per second.
length of the two cars is 5m(given)
the relative speed of the two cars travelling in the same direction is
(50/3)-(35/3)=(15/3)
which equals 5meters per second
now, relative distance travelled by the two cars is
(5+5)=10m
since the length of each car is 5m(given).
therefore the time of meeting of the two cars is (10/5)
i.e., relative distance divided by relative speed of the cars.
so the car wil overtake the other car in 2 seconds
then the distance travelled for overtaking is (2*5)=10m
(the product of relative time and relative speed).
solution:
time to overtaket:2s
distance for overtaking: 10m