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.

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, .

Consider the form . Find a pair of integers whose product is and whose sum is . In this case, whose product is and whose sum is .

Write the factored form using these integers.

Cancel the common factor of .

Factor out of .

Cancel the common factor.

Rewrite the expression.

Multiply and .

Cancel the common factor of .

Cancel the common factor.

Rewrite the expression.

Simplify (3f^2+11f+6)/(f^2+9f+18)*(f+6)/(f^2+7)