Speed of the first car = 10 km/h
Speed of the second car:
In the first hour = 8 km/h
In the second hour =(8+12)=1712 km/h
In the third hour =(172+12)=9 km/h
∴ The numbers 8,172,9…… are in AP
In which a=8,d=12 and n=x
Let the second car overtake the first car in x hours.
∴ Distance covered by the second car in x hours
⇒10x=Sum of x numbers in above AP =Sx
∴10x=x2[2a+(x−1)d]∴10x=x2[2×8+(x−1)12]∴10x=x2[2×8+(x−1)12]∴10/x×2/x=16+x2−12∴2×20=32+x−1∴40−31=x⇒x=9
∴ The second car overtakes the first car in 9 hours.