The faster car behind is catching up/closing the gap/gaining on
the slow truck in front at the rate of (90 - 50) = 40 km/hr.
At that rate, it takes (100 m) / (40,000 m/hr) = 1/400 of an hour
to reach the truck.
(1/400 hour) x (3,600 seconds/hour) = 3600/400 = 9 seconds, exactly