Answer: Hi! The answer to this problem is 0km.
Ok, the definition of displacement is the change in position.
So if in this 8 hours i first travel 40 km in one direction, and the i traveled -40km in the same direction i would be on the same place, so the total displacement would be 0 km.