# How do you factor x^2+3xa+6x 18a?

May 14, 2015

Note: I assume there is a typo. The expression could be

${x}^{2} + 3 x a + 6 x + 18 a$

We can factor this expression using Grouping. Making groups of 2 terms each, we get:

$= \left({x}^{2} + 3 x a\right) + \left(6 x + 18 a\right)$

$x$ is common to both the terms in the first group, and $6$ is common to both the terms in the second group.

$= x \left(x + 3 a\right) + 6 \left(x + 3 a\right)$

$x + 3 a$ is common to both the terms

=color(green)((x+3a)(x+6)