How many ways can you get a bunch of 3 history books and 7 novels from 30 books (15 novels, 10 history book and 5 math books)?

3 of 10 history books ---> C(10,3)

7 of 15 novels ---> C(15,7)

number of ways = C(10,3 x C(15,7) = 120 x 6435 = 772200