Actually Welcome to the Concept of the Functions.
So here to get the (f-g) (x) , we do the subtraction of the two functions now,
==> 8x + 5 - (9x -2)
===> 8x + 5 -9x +2
===> 8x - 9x +7
==> -x + 7
hence the new function (f-g) (x) = 7 - x
and the domain is from (- infinite to + infinite)