The table shown gives values of the function y=g(x) for selected values of x.

Answer: C
Explanation:
A is eliminated because of 3 and 24, 3^2 is 9 and 9 times 3 isnt 24
B is eliminated because of 1 and 6, 2 plus 3 is 5 not 6
C works for all the number sets
D is eliminated because of 1 and 6, again 3 plus 2 is 5 not 6