Choose 5 from 10, you have C5.10 different combination. The only chance that all 5 belong to the same group is that all 5 are hard cover. The combination of all 5 hard top is C5.6 (choose 5 out from the 6 hard tops). Since there are only 4 soft cover, there is no chance that all 5 books chosen are all soft cover, you don't have to worry about the soft covers.