A car and a train move together along straight, parallel paths with the same constant cruising speed v0. At t=0 the car driver notices a red light ahead and slows down with constant acceleration −a0. Just as the car comes to a full stop, the light immediately turns green, and the car then accelerates back to its original speed v0 with constant acceleration a0. During the same time interval, the train continues to travel at the constant speed v0.How much time does it take for the car to come to a full stop?
Express your answer in terms of v0 and a0.