Input (grade 8): Very often, it is the largest number of votes that win, but there may be other criteria to weight against.
Output (grade 7): Very often, it is the largest number of votes that win, but there may be other ways that decide the winner.