From my research, the following image is used for the problem. For each segment, the displacement can be obtained by looking for the area under the segment.
Part A:
displacement = (1/2)102 = 10m
Part B:
displacement = [(1/2)45] + (52) = 20m
Part C:
displacement = [(1/2)410] + (210) = 40m