You can put this solution on YOUR website! How many ways can you select any five books from a set of 10 books on a shelf?
-----------------
You are selecting groups of books.
That is done using combinations.
10C5 = (10*9*8*7*6)/(1*2*3*4*5) = 252 ways
==============================================
Cheers,
Stan H.