Let (x+y-2z) = p
Let (x-2y+2z) = q
Substituting,
Factoring as a perfect square.
Replacing p and q with (x+y-2z) and (x-2y+2z),
respectively,
Removing parentheses,
Collecting like terms,
or multiplied out
whichever of the last two forms you prefer.
Edwin