What is the displacement of the ride between 0s and 16 s?What is the distance traveled between 0s and 16s

Problem
What is the displacement of the ride between 0s and 16 s?
What is the distance traveled between 0s and 16s ?
Solution
The displacement is defined as:
Displacement= xf -xi= 0 - 12 =-12
The distance can be calculated with the area below the curve and we have:
Distance = (8*12) + (8*12)/2 + (4*15)/2 + (4*9)/2 = 96+48+ 30+18=192