Stage 5's clue tells us that there were 150m left. So the distance left at the start of Stage 4 must have been:
Dist4 = Dist4 + 75 + 150
Which simplifies to give Dist4 = 450m.
Stage 3's clue tells us that 450m was one quarter of the remaining distance, so Dist3 = 1,800m.
Stage 2's clue tells us that the distance at the start of Stage 2 was:
Dist2 = Dist2 + 35 + 1800
Which simplifies to give Dist2 = 3,670m.
Stage 1's clue tells us that 3,670m was half the overall distance, which means the entire ride was 7,340m.
The Miller next took the company aside and showed them nine sacks of flour that were standing as depicted in the sketch.
"Now, hearken, all and some," said he, "while that I do set ye the riddle of the nine sacks of flour.
And mark ye, my lords and masters, that there be single sacks on the outside, pairs next unto them, and three together in the middle thereof.
By Saint Benedict, it doth so happen that if we do but multiply the pair, 28, by the single one, 7, the answer is 196, which is of a truth the number shown by the sacks in the middle.
Yet it be not true that the other pair, 34, when so multiplied by its neighbour, 5, will also make 196.
Wherefore I do beg you, gentle sirs, so to place anew the nine sacks with as little trouble as possible that each pair when thus multiplied by its single neighbour shall make the number in the middle."
As the Miller has stipulated in effect that as few bags as possible shall be moved, there is only one answer to this puzzle, which everybody should be able to solve.
[Ref: ZYIT] The Miller's Puzzle. The Canterbury Puzzles And Other Curious Problems by Henry Ernest Dudeney (1907).
Direct Link: www.brainbashers.com?ZYIT
Hint: The two left numbers multiplied, or the right two numbers, should create the central number.
The way to arrange the sacks of flour is as follows: 2, 78, 156, 39, 4. Here each pair when multiplied by its single neighbour makes the number in the middle, and only five of the sacks need be moved.
There are just three other ways in which they might have been arranged (4, 39, 156, 78, 2; or 3, 58, 174, 29, 6; or 6, 29, 174, 58, 3), but they all require the moving of seven sacks.