First we need to find the speed of each car using the formula
, where s is the speed, d is the distance and t is time.
Since they are moving in the same direction we subtract the speeds to obtain relative velocity,
, then
. This is the time it takes for the fastest car to complete an extra lap relative to the slower car.