Answer:
The time taken by the second car to be 100 m ahead of the first car is 10 seconds.
Explanation:
Given that,
Initial speeds of both car is 0 as they starts at rest.
The acceleration of car 1, 
The acceleration of car 2, 
The distance covered by car 1 is :



.......(1)
The distance covered by car 2 is :



......(2)
It is mentioned that the second car to be 100 m ahead of the first car, so,


t = 10 seconds
So, the time taken by the second car to be 100 m ahead of the first car is 10 seconds. Hence, this is the required solution.