How do you find the total distance traveled by a particle that moves along a line?