In the game of poker, the highest hand is a straight or a flush. If the two players tie for…