Question 346754
there are 4 types of books (math, chem, hist, language) so there are 4! ways to arrange the type of book.
---
Within each topic there are 4! ways to arrange the 4 math books
3! ways to arrange the chem books
2! ways to arrange the hist books
1! ways to arrange the languate book

--
in total=ways to arrange type * ways to arrange books within each type
there are  4!*(4!*3!2!*1)=24*24*6*2=6912 ways to arrange the books