You can put this solution on YOUR website! x^2+5x+4 . x^2+5x-14
________ __________
x^2-6x+8 x^2+8x+7
*****************************
(x+4)(x+1) (x+7)(x-2)
--------------------- Cancel out (x+1),(x+7) & (x-2)
(x-4)(x-2) (x+7)(x+1)
*****************************
(x+4)
----- ans.
(x-4)