Question 1082301
You have 3 math, they can each be placed on one end, the other, or in the middle, so this is 3!
Now you have 5 hist. books, they can each go in any of 5 positions: 5!
And the French books 4!
Finally, you have books on three subjects, they are grouped but the group can go on the left of the other groups, or the middle, or the right: 3!
3! x 5! x 4! x 3! = 103,680 ways