A vehicle moving at 20m/s applies brakes at t=0. The deceleration is constant at −5m/s2. However, at t=2s, the brakes are released slightly, changing the acceleration to −2m/s2. Calculate the total time taken for the vehicle to come to a complete stop.