The green line shows an acceleration of 1 m/s/s
The red line shows an acceleration of 2 m/s/s
The blue line shows a deceleration of 3 m/s/s.
Finally the total distance travelled is: 50 + 200 + 150 = 400 m