In rummy game, the 51 bonus is calculated by adding up the points of the cards thasignal and slots in qtt are not part of a valid set or sequence in the player's hand. If the total points of these unmatched cards is 51 or less, the player is eligible for the 51 bonus.