A vending machine has three buttons, , and , and can dispense three products: Chips, Juice and Nuts. A technician tests four machines and records the wiring of each as a set of (button, product) pairs.
| Machine | Recorded pairs |
|---|---|
| , | |
| , , , | |
| , , | |
| , , |
A wiring counts as a function from the set of buttons to the set of products. Which of the four wirings really are functions, and which of those are onto?

