Which of the sets of order pairs represents a function

A function is seen when you know that for every x value there is one y value. An x value cannot be repeated.
In A, the x coordinates are 3, 4, -3, and 2. They are all different.
In B, they are 2, -1, 5, and 4. Again, they are all different.
Both A and B represent functions.