There are 5 Engineering Books, 4 Algebra Books, 3 differential
Books, 5 Physics Books, 3 Chemistry Books, 4 Biology Books. There
are total- (5+4+3+5+3+4)=24 books.
- The no. of ways to arrange all books together on a shelf is 24!
ways.
- The number of ways to arrange books so that the books of each
course are together-
There are total 6 different subjects.The no. of ways to arranging
them subject wise is: 6! ways
Now again The Engineering Books can arrange themselves in- 5!
ways.
The Algebra Books can arrange themselves in- 4! ways.
The Differential Books can arrange themselves in- 3! ways.
The Physics Books can arrange themselves in- 5! ways.
The Chemistry Books can arrange themselves in- 3! ways.
The Biology Books can arrange themselves in- 4! ways.
The number of ways to arrange books so that the books of each
course are together=
6!*5!*4!*3!*5!*3!*4! ways.
- We consider Mathematics boks(i.e., Algebra Books and
Differential Books) as a single unit and the science books(i.e.,
Physics Books, Chemistry Books and the Biology Books ) as a single
unit.
So now there are total 7 books. 5 Engineering and 1 Mathematics and
1 Science. They can be arranged in 7! ways.
There are total 7 Mathematics books. They can arraange themselves
in 7! ways.
There are total 12 Science books. They can arraange themselves in
12! ways.
No. of ways to arrange books so that mathematics books
are together and science books together: 7!*7!*12!.
- We consider 5 Engineering Books as a single unit.
So now there are total 20 books. They can be arranged in 20!
ways.
The 5 Engineering Books can be arranged themselves in 5!
ways.
Number of ways to arrange books so that engineering books are
together- 20!*5!
I hope this clarifies your doubt. If you're satisfied with the
solution, hit the Like button. For further
clarification, comment below. Thank You. :)