A function is a special relationship where each input has a single output.
A. The set {(3, 5), (-1, 7), (3, 9)} doesn't represent a function, because input x=3 has two outputs and
C. The set {(1, 2), (1, 4), (1, 6)} doesn't represent a function, because input x=1 has three outputs and
B. The set {(1, 2), (3, 2), (5, 7)} represents a function, because each input has a single output.
Answer: correct choice is B.