Look at the graph. Find the accelerations shown by the green and red lines.
Also calculate the deceleration shown by the blue line.
Finally find the total distance travelled.