Six math books, four physics books and three chemistry books are arranged on a shelf.
How many arrangements are possible if all books of the same subject are grouped together?