Because they go in the opposite direction, one goes to one section of the market and the other, and they just walk the length of the whole market.
So the total market length is 520+440 = 960m.