A pair in poker is a set of two cards that are of equal rank and have three other cards that don’t match. In general, a higher pair beats a lower pair. For example, 6-6-4-3-2 beats 5-5-A-K-Q. When comparing pairs, compare them by the higher odd card, the second highest odd card, and the lowest…