(6h+1)-(9h+4)

don't tell me the answer just give me the formula

add up all the "h" terms and add up all the plain numbers. There's no formula.

Like adding apples and oranges; add up the apples, add up the oranges.