Which of the sets of ordered pairs represents a function?

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

Q = {(–7, 8), (4, –6), (–3, 1), (1, 5)}

A) Only P
B) Only Q
C) Both P and Q
D) Neither P nor Q