The total distance traveled from home to the grocery store would be 8km.
Because both distances she traveled were in the same direction, north, both displacement and distance travel were equal.
If the student traveled in two different directions, such as north to the school and south to the grocery store, her distance traveled would be 8km but her displacement would only be 6km.