From turning in a mail ballot to voting in person, various kinds of equipment are used along the way. Here’s how voting and counting processes work, and machines that are used.