Write the following expression in its most factored form:

`expr(["+", ["*", A, "x"], B])`

^\s*`TERM2`\s*`TERM3`\s*$

^\s*`TERM2N`\s*`TERM3N`\s*$

^\s*\(\s*`TERM2`\s*`TERM3`\s*\)\s*$

^\s*\(\s*`TERM2N`\s*`TERM3N`\s*\)\s*$

^\s*`TERM1`\s*\(\s*`TERM2`\s*`TERM3`\s*\)\s*$

^\s*`TERM1N`\s*\(\s*`TERM2N`\s*`TERM3N`\s*\)\s*$

a factored expression, like **5(x+2)**

To factor a polynomial, you should first try to find the greatest common factor of all the terms.

The factors of

are
`A`x`Ax_FACTORS` and the factors of

are `B``B_FACTORS`.

The greatest common factor of

and `A`x

is
`B`

.
`GCD`

Since the greatest common factor is `1`

,
the expression is already in its most factored form.

Therefore the answer is the original expression,

.
`SOLUTION`

We can factor out the

and
put it before the parenthesis.
`GCD`

If we divide each of the terms in the original
expression by

we get
`GCD``\dfrac{`

and
`A`x}{`GCD`} =
`plus((A/GCD) + "x")``\dfrac{`

.
`B`}{`GCD`} =
`B/GCD`

So the factored expression is

.
`SOLUTION`