Question: (a) In how many ways can five different mathematics books, three different physics books, and four different chemistry books be arranged on a shelf?
(b) Repeat (a) if all books of the same subject are to be together.
(c) [BB] Repeat (a) if three of the five mathematics books are the same.
(d) Repeat (c) if, in addition, all the physics books are the same.