\(a,=\left(x-y-z\right)^2\\ b,=\left[x\left(x+2\right)+\left(x-2\right)\left(x+2\right)\right]:\left(x+2\right)\\ =x+x-2=2x-2\)
\(a,\left(x-y-z\right)^5:\left(x-y-z\right)^3=\left(x-y-z\right)^2\)
\(b,\left(x^2+2x+x^2-4\right):\left(x+2\right)\\ =\left[x\left(x+2\right)+\left(x-2\right)\left(x+2\right)\right]:\left(x+2\right)\\ =\left[\left(x+2\right)\left(x+x-2\right)\right]:\left(x+2\right)\\ =2x-2\)