I've got a problem involving a track and two cars. The problem appears to be a fairly simple simultaneous equation but actually turns out to be a bit more complex.

Two toy cars start from the same position and race around a track. Both cars accelerate for 3 seconds. Car A accelerates at a rate of 2m/s/s while car B accelerates at a rate of 3.2m/s/s. The radius of the track is 2.5m. At what time does car b overtake car A.

The problem in encountering in the maths is that car B completes a lap before overtaking and therefor its displacement resets to 0 while car A continues about its journey.

Anyone have any ideas?