Computation Workshop Solution Checker

Poker Hands

In the game of Poker, Ross has been deal 5 cards from a standard deck of 52 playing cards. We are interested in how many ways Ross' opponent could be dealt a hand of greater value than Ross' hand, from the remaining 47 cards in the deck.

Part A If Ross' hand is \((KC, KD, KH, KS, 7H)\), then how many possible winning hands could Ross' opponent be dealt?
Part B If Ross' hand is \((2C, 4C, 7D, 8S, AS)\), then how many possible winning hands could Ross' opponent be dealt?