V1 V2
In that order you can see that the pages in each book are in this order: | V1 | V2 |
+----------+----------+
|9876543210|9876543210|
(0-indexing of the pages for fun, plus it fit better, also reminded me of annoying protocol specs that mix 0- and 1-based indices with different elements)The first page of V1 is the rightmost page (shelved) of Volume 1, and the last page of V2 is the leftmost page (shelved) of Volume 2. So the bookworm ends up going only through the covers. Having volumes shelved in order from left-to-right is conventional in left-to-right languages since that's the same direction we read, and you'd want to "read" through the titles to find the volume you wanted.
If volume 1 is on the left, and the worm goes from page 1 of volume 1 to the last page of volume 2, it travels 4mm in a straight line.
Page 1 of volume 1 and the last page of volume 2 will be right next to each other, if volume 1 is on the left.
But it's true, maybe this is too much to assume. Most of the time when I've seen this puzzle it's shown the book spines in an image to make it clear, and many people still can't get it. Then again, that would rely on knowing whether it was using top-to-bottom or bottom-to-top book title orientation, so perhaps the only solution is for the author to spell out "the first page of volume 1 is next to the last page of volume 2."
Not so fast. Some cultures (Japan for one, I think China and Taiwan as well?) have page-ordering right-to-left but books are generally stacked left-to-right from what I've seen (and in ether case bookstores don't order volumes differently depending on if it's native right-to-left books or foreign right-to-left ones).
The answer is supposed to be 4mm; the only way for that to work if volume 1 is on the left is for the bookworm to gnaw its way out of the book from v.1.p.1, cross the outside of the two books without gnawing anything until it reaches the back cover of volume 2, and then gnaw its way through that cover to reach the final page of volume 2.
I don't think that's what the question has in mind. The point of being a bookworm is that you don't leave the book. So the answer would appear to require that volume 2 is shelved in front of volume 1. I don't know why that would be the case.