Relative velocity of the faster car : v = 60 - 42 = 18 kmph = 5 m/s
Total distance the faster car has to travel in respect to other car in order to overtake it completely will be 10 m.
Hence: time taken is t=105=2s
Road distance used will be the absolute distance travelled by the faster car while overtaking
i.e. 2×503=1003m