Displacement is a vector representing the distance traveled and specifying the direction.
If you start at position xo and move to position x, your displacement Dx is defined as:
Dx = x - xo
If you move 5 meters north, Dx = 5 m north.
Now go the other direction, with a displacement of 3 m south.
The total distance traveled is 8 m. What is your net displacement?
Dx1 = +5 m north
Dx2 = +3 m south = - 3 m north
Net displacement: Dx = Dx1 + Dx2 = +5 -3 = +2 m north