Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor using the AC method.

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.

Remove unnecessary parentheses.

Factor 2x^2-18x+40