Which of the sets of ordered pairs represents a function?

A = {(3, −5), (4, 6), (3, 9), (2, 7)}
B = {(2, 4), (−1, 4), (5, 4), (4, 4)}

a
Both A and B

b
Only B

c
Only A

d
Neither A nor B