In a library, books are arranged on a single shelf by publication year. Book X is 12th from the left end. Book Y is 15th from the right end. If there are 4 books between Book X and Book Y, and Book X was published earlier than Book Y (placing X to the left of Y), how many total books are on the shelf?
31 books.
Book X is at position 12 from the left. Moving 4 books past X places Book Y at position 17 from the left (12 + 4 + 1 = 17). Since Book Y is 15th from the right, the total number of books is 17 + 15 - 1 = 31.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Medium. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
A line goes: mitten, sled, mitten, sled, mitten. What comes next?
I have cities with no houses, forests with no trees, and rivers with no water. What am I?
Three identical wooden chests are placed in a row. One contains only gold coins, one contains only silver coins, and one contains a mix of both. Every single chest has been labeled incorrectly by a careless thief. You are allowed to draw just one single coin from only one chest to determine the exact contents of all three. Which chest do you choose?
The person who makes it has no need of it; the person who buys it has no use for it. The person who uses it can neither see nor feel it. What is it?
An ancient vault requires a security key containing a four-digit PIN. The digits are all different. The product of the first and fourth digits is 12. The product of the second and third digits is 24. The third digit is greater than the fourth digit. What is the correct PIN?
Three friends—Kai, Liam, and Maya—each brought a different pet to the park: a ferret, a turtle, and a parrot. Kai is allergic to feathers. Maya's pet lives in a terrarium and doesn't bark or chirp. Liam's pet has four legs and fur. Which pet did Kai bring?

