Which of the following sets represents a function?
{(3, 5), (-1, 7), (3, 9)}
{(1, 2), (3, 2), (5, 7)}
{(1, 2), (1, 4), (1, 6)}