Maths WorkshopMaths problems with full solutions
Exercise 874Combinatorics › Counting principlesHigh schoolAdded 3 Nov 2026

Ordering books on a shelf

#permutations#block arrangement#product

Statement

There are 33 math books, 22 physics books, and 22 chemistry books to be arranged in a row, but all books of the same subject must stay together. How many arrangements are possible?

Hint

Treat each group as a block. Arrange the blocks, then the books within each block.

Show solutionHide solution

Solution

Blocks. 33 blocks (math, physics, chemistry).

Arrange blocks. 3!=63!=6 ways.

Within blocks. Math: 3!=63!=6; physics: 2!=22!=2; chemistry: 2!=22!=2.

Total. 6⋅6⋅2⋅2=1446\cdot6\cdot2\cdot2=144.

Conclusion. There are 144144 arrangements.