Distance = (speed) x (time moved at that speed)
Distance moved in the positive x direction = (2.9 m/s) x (4.5 sec)
Distance moved in the positive x direction = 13.05 meters
Distance moved in the negative x direction = (2.8 m/s) x (4 sec)
Distance moved in the negative x direction = 11.20 meters
Total distance traveled = (13.05 m) + (11.20 m)
Total distance traveled = 24.25 meters
For distance, we don't care about the directions, or how long it stopped.