Which of the tables represents a function?

Table A
3 1
3 4
2 3

Table B
2 7
5 6
2 9

Table C
1 5
7 2
7 3

Table D
3 4
1 5
8 5

All other answers of this question that i've seen had been table D, but i'm not entirely sure!