Which of the tables does NOT represent a function ?

Answer:
B
Step-by-step explanation:
My teacher used to compare functions to vending machines, if i press 2 then i will get m&m's which is 6. But if I press 3 I can't get m&m's(6) and a candy bar which is 7. Hope this helped.