Reorder terms.

For a polynomial of the form , rewrite the middle term as a sum of two terms whose product is and whose sum is .

Factor out of .

Rewrite as plus

Apply the distributive property.

Multiply by .

Factor out the greatest common factor from each group.

Group the first two terms and the last two terms.

Factor out the greatest common factor (GCF) from each group.

Factor the polynomial by factoring out the greatest common factor, .

Factor out of .

Factor out of .

Factor out of .

Cancel the common factor.

Divide by .

Multiply and .

Factor out of .

Rewrite as .

Factor out of .

Rewrite as .

Cancel the common factor.

Rewrite the expression.

Move the negative in front of the fraction.

Simplify (8-7x-x^2)/(x+8)*(x+5)/(9x-9)