For the linear function f, the graph of y=f(x) in the xy-plane has a slope of 3 and passes through the point (2,7). Which equation defines f?
f(x)=3x+1
f(x)=3x+7
f(x)=3x−1
f(x)=3x+21