The function f is defined by f(x)=(k+1)x−2, where k is a constant. If f(3)=10, which of the following defines f(x)?
f(x)=4x−2
f(x)=3x−2
f(x)=4x+1
f(x)=3x+1