First you do a count back, most 1s then most 2s and if still tied after that its who won the last race.