Which rule matches the function shown in the graph

A. y=3x
B. y=x+2
C. y= x-2
D. y= x/3

The rule that matches the function shown in the graph is B. y = x + 2.