[tex]\bf \begin{array}{ccccllll}
&distance&rate&time(hrs)\\
&\textendash\textendash\textendash\textendash\textendash\textendash\textendash\textendash\textendash&\textendash\textendash\textendash\textendash\textendash\textendash&\textendash\textendash\textendash\textendash\textendash\textendash\textendash\textendash\textendash\textendash\\
\textit{first car}&d&40&t\\
\textit{second car}&d&60&t+2
\end{array}
\\ \quad \\\\\\
d=d\implies (40)(t)=(60)(t+2)[/tex]
"t", is the time the first car has travelled when reaching "d" distance,
whatever that is, at that point, the second car is passing it