The tables show some input and output values:

Table A
INPUT 1, 2, 2, 4
Output 7,7,9,5
Table B
Input 6,7,8,9
Output 1,3,2,5
Which table represents a function?
A. Only Table A
B. only table b
C. both A and B
D.neither

C. both A and B