The table below shows the relationships between the numbers of hotdogs sold, x, and the profit made, y, in dollars.

input-x output-y
0 -1
3 8
10 29
Which equation represents the rule for the function table?
A.y=x-1
B.y=x+5
C.y=3x-1
D.y=2x-1

C.y=3x-1