Pick the row, column or diagonal most likely to come up all-matching if you re-rolled it. Dice already showing the target number are kept — only the mismatched ones re-roll.