You may have subtracted h from g. 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.