Take into account that John and the other members are in the same point, that is, they have traveled the same distance in the swimming pool.
Then, on anumber line, the position of all members is at the same number, for this case, one mile, just as you can notice in the following figure: