At a certain instant of time, a toy car is traveling at a constant speed of v0 to the right, while a distance D ahead is another toy car starting from rest and traveling to the left with constant acceleration a. The cars are moving along the same lines directly toward each other. At what time do they collide, in terms of D, v0, and a?