(a-10)(a+4)
Split it up like this but be careful of the negative sign.
= a(a+4) -10(a+4)
\(=a^2+4a\quad -10a-40\\ =a^2-6a-40\\\)