`xy-6y+2x-12`
`=y(x-6)+2(x-6)`
`=(y+2)(x-6)`
`2x(y-z)+(z-y)(x+y)`
`=2x(y-z)-(y-z)(x+y)`
`=(y-z)(2x-x-y)`
`=(y-z)(x-y)`
a) Ta có: \(xy-6y+2x-12\)
\(=y\left(x-6\right)+2\left(x-6\right)\)
\(=\left(x-6\right)\left(y+2\right)\)
b) Ta có: \(2x\left(y-z\right)+\left(z-y\right)\left(z+y\right)\)
\(=2x\left(y-z\right)-\left(y-z\right)\left(z+y\right)\)
\(=\left(y-z\right)\left(2x-z-y\right)\)