While subtracting g from f, you may have combined the two middle unlike terms of the functions. Set up the problem as follows:
Be careful to distribute the minus sign to all terms in g. Combine like terms only, factor the numerator, and simplify.