You're driving parallel to train tracks at 59.0 km/h when a train passes you, going a steady 86.0 km/h. A track crossing is up ahead, so you begin to speed up at 5.50 m/s2. How far do you drive before you pass the train?

If you overtake the train in t seconds, then the two distances must be equal.

86t = 59t + 2.75t^2
solve for t, and use that to find the distance