Regroup terms.

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Reorder the expression.

Reorder and .

Reorder and .

Factor out of .

Factor out of .

Factor out of .

Apply the distributive property.

Multiply by by adding the exponents.

Move .

Multiply by .

Rewrite using the commutative property of multiplication.

Rewrite using the commutative property of multiplication.

Multiply by .

Rewrite using the commutative property of multiplication.

Multiply by .

Multiply by by adding the exponents.

Move .

Multiply by .

Multiply by .

Multiply by .

Apply the distributive property.

Multiply by .

Multiply by .

Add and .

Factor 18a^2+8a^2y-45a-20ay+28a+63