Explanation
The girl’s displacement is how far she is with respect to her starting position, as opposed to distance, which is the sum total of all the ground she has covered from start till end. In light of this, we can see that her walking 6 meters south is cancelled out by her moving 6 meters north, subsequently. In the end, she is only 3 meters east of her starting point.