Which of the sets of ordered pairs represents a function?

P = {(3, 5), (–1, 5), (4, –6), (2, 9)}

Q = {(7, –2), (5, 9), (–1, 8), (5, –3)}

Only P
Only Q
Both P and Q
Neither P nor Q