Now you need to find out how far the car traveled during all this acceleration & deceleration...
First, while accelerating:
Then, while decelerating: