Your solution for the 1st task is correct.
For the second task: Calculate the number of combinations for each case
Novels: (10Cx)
Biographies: (8Cy)
Detective Stories (10Cz)
Sum up all of the total combinations from each case:
302,400 + 141,750 + 25,200 + 1,260 + 302,400 + 84,000 + 6,720 + 117,600 + 14,700 = ??? (Your answer here)