A linear function f passes through the points (2,10) and (4,16). Which equation defines f?
f(x)=3x+10
f(x)=2x+6
f(x)=3x+4
f(x)=2x+10