The clerk’s arithmetic
On an English book standing upright with its spine towards you, the front cover is on your right. The worm passes the front cover of I, both covers and all the leaves of II, and the back cover of III. That’s 3 + 4 × ⅛ = 3½ inches. On the outward journey the worm encounters the middle volume’s chapter headings last to first.
The distance is H. E. Dudeney’s puzzle 420, “The Industrious Bookworm,” in Amusements in Mathematics. The middle volume’s contents, tickets and service are inventions.