help please

For f(x)=3x+1 and g(x)=x^2-6 find (f-g)(x)

A. x^2-3x-7

B. 7+3x-x^2

C. 3x^2-17

D. -x^2+3x-5