Six boxes - A, B, C, D, E and F are arranged one above the other in the stacks, but not necessarily in the same order. The topmost stack is numbered as 1, while the bottommost stack is numbered as 6. Each box has different heights (in inches), viz., 20, 25, 30, 35, 40 and 45.
Each box contains one book of different height.
Box D, which is kept immediate below the book of height 17 inches, is kept on an odd numbered stack.
| Case 1 | | | Case 2 | | |
Box no. | Boxes | Height of box (inches) | Height of book (inches) | Boxes | Height of box (inches) | Height of book (inches) |
1 | | | | | | |
2 | | | 17 | | | |
3 | D | | | | | |
4 | | | | | | 17 |
5 | | | | D | | |
6 | | | | | | |
One box is arranged between box D and box E. Box E is arranged immediate above box B.
The height of box E is twice of box B. Thus, the height of box E is 40 inches and the height of box B is 20 inches.
| Case 1 | | | Case 1a | | | Case 2 | | |
Box no. | Boxes | Height of box (inches) | Height of book (inches) | Boxes | Height of box (inches) | Height of book (inches) | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | | | | | | | |
2 | B | 20 | 17 | | | 17 | | | |
3 | D | | | D | | | E | 40 | |
4 | | | | | | | B | 20 | 17 |
5 | | | | E | 40 | | D | | |
6 | | | | B | 20 | | | | |
Two boxes are arranged between box E and the box that contains a book of height 27 inches. Thus, case 1a is invalid.
| Case 1 | | | Case 2 | | |
Box no. | Boxes | Height of box (inches) | Height of book (inches) | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | | | | |
2 | B | 20 | 17 | | | |
3 | D | | | E | 40 | |
4 | | | 27 | B | 20 | 17 |
5 | | | | D | | |
6 | | | | | | 27 |
Three boxes are kept between the boxes that contain books of height 39 inches and 43 inches.
The height of the book arranged in each box is less than the box's height.
So, the box of height 40 inches must contain the book of height 39 inches and the box of height 45 inches must contain the book of height 43 inches.
So, box E contains the book of height 39 inches.
Thus, case 2 is invalid.
| Case 1 | | |
Box no. | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | 39 |
2 | B | 20 | 17 |
3 | D | | |
4 | | | 27 |
5 | | 45 | 43 |
6 | | | |
The height of the book kept in box C is 33 inches.
So, the height of box C will be 35 inches.
Box no. | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | 39 |
2 | B | 20 | 17 |
3 | D | | |
4 | | | 27 |
5 | | 45 | 43 |
6 | C | 35 | 33 |
The height of the book arranged in each box is less than the box's height.
Box no. | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | 39 |
2 | B | 20 | 17 |
3 | D | 25 | |
4 | | 30 | 27 |
5 | | 45 | 43 |
6 | C | 35 | 33 |
Box F is kept immediate below the box that contains a book of height 23 inches.
Therefore, the final arrangement is:
Box no. | Boxes | Height of box (inches) | Height of book (inches) |
1 | E | 40 | 39 |
2 | B | 20 | 17 |
3 | D | 25 | 23 |
4 | F | 30 | 27 |
5 | A | 45 | 43 |
6 | C | 35 | 33 |
If all the boxes are arranged according to the ascending order of its heights from the topmost to the bottommost stack, then we get:
Box no. | Boxes | Height of box (inches) | Height of book (inches) |
1 | B | 20 | 39 |
2 | D | 25 | 17 |
3 | F | 30 | 23 |
4 | C | 35 | 27 |
5 | E | 40 | 43 |
6 | A | 45 | 33 |
So, box A contains the book of height 33 inches.