Which of the sets of ordered pairs represents a function?

A = {(−4, 5), (1, −1), (2, −2), (2, 3)}

B = {(2, 2), (3, −2), (9, 3), (9, −3)}

1. Only A
2. Only B
3. Both A and B
4. Neither A nor B