You can solve this by setting up an equation as follows:
t*30 = t*20 +300
where t = time in seconds, and 30 and 20 represent the speeds of the cars, and 300 is the distance that separates the car at time = 0
Solving for t we get:
t = 30s
Therefore choice 1 is correct.