Answer:
20.62 seconds
Explanation:
Intially, the first car starts from rest, therefore its displacement through the first 6 seconds can be found as follows:

Then, we need to find out its velocity at this point, which would be the first car's initial velocity for the second moment, when the second car accelerates:

To find out the moment that the second car overtakes the first one we should equal both cars' displacement equations and solve for t, keep in mind that a 54 m head start should be added to the first car's displacement:

Solving for t will yield a positive and a negative answer, since time can't be negative, only the positive answer should be considered, therefore, t = 20.62 s