a) \(xy+y-2x-2\)
\(=y\left(x+1\right)-2\left(x+1\right)\)
\(=\left(x+1\right)\left(y-2\right)\)
b) \(xy+1+x+y\)
\(=y\left(x+1\right)+\left(x+1\right)\)
\(=\left(x+1\right)\left(y+1\right)\)
c) \(x\left(x-1\right)+y\left(x-1\right)+z\left(x-1\right)\)
\(=\left(x-1\right)\left(x+y+z\right)\)