b x2+x-6
=x2+3x-2x-6
=x(x+3)-2(x+3)
= (x-2)(x+3)
a)\(x^2-3x-4xy+12y\)
\(=\left(x^2-3x\right)-\left(4xy-12y\right)\)
\(=x\left(x-3\right)-4y\left(x-3\right)\)
\(=\left(x-3\right)\left(x-4y\right)\)
b)\(x^2+x-6\)
\(=x^2-2x+3x-6\)
\(=\left(x^2-2x\right)+\left(3x-6\right)\)
\(=x\left(x-2\right)+3\left(x-2\right)\)
\(=\left(x-2\right)\left(x+3\right)\)