What is the rule for the function shown in the table?

X: -1, 0, 1, 2
Y: -2, 1, 4, 7

A) y=1/3x +1
B) y=3x+1
C) y=1/3x
D) y=1/2x+1

The rule for the function based on the given table can be determined by examining the pattern between the values of x and y.

When x increases by 1, the value of y increases by 3.

Looking at the values:
X: -1, 0, 1, 2
Y: -2, 1, 4, 7

This shows that the rule is y = 3x + 1.

Therefore, the correct option is:

B) y = 3x + 1