For the linear function f, f(x)=3x+b where b is a constant. If f(2)=10, what is the value of b?
4
6
8
10