If f(x) = 3x+2 and g(x)=x^2+1, which expression is equivalent to (f *g)(x)=x?

A. (3x+2)(x^2+1)
B. 3x^2 +1+2
C. (3x+2)^2 + 1
D. 3(x^2+1)+2