To find the displacement we need to remember that if we have a v-t graph the displacement over a given interval is given by the area under the curve of the graph of the velocity. Then in this case we need to find the area of the traingle a rectangle shown below:
From the graph we notice that the base of the rectangle and triangle is equal to 2; we also notice that the height of bth of them is 4, then the area under the graph is:
Therefore the displacement is 12 meters.