There are nine ranking Poker hands. Each of them is different, but they have the same value. If you have a pair of cards with a different value, you will win. Otherwise, if you have two pairs with the same value, you will lose. If you have two pairs that are different values, the higher…