(f-g)(x) is stating to subtract g(x) from f(x). Therefor, (f-g)(x) = (x2-6x) - (1-x) = x2-6x+x-1 = x2-5x-1
(f-g)(5) is stating to do the above process with 5 substituted for x. You can substitute 5 for x before or after you combine the functions.
Before: f(5)=52-6(5)= -5 g(5) = 1-5 = -4
(f-g)(5) = f(5)-g(5) = -5 - (-4) = -1
After : (f-g)(x) = x2-5x-1 substitute 5 for x (f-g)(5) = 52-5(5)-1 = -1