Which of the sets of ordered pairs represents a function?

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