let f(x)=3x-2 and g(x)=x squared+6 use them (f-g)(x)

f-g = 3x - 2 - x^2 - 6

= -x^2 +3x - 8