24x y^2 z^2 * (x+y-z) - 32xyz * (z-x-y) + 8xy z^3 * (z-x-y)
=24x y^2 z^2 * (x+y-z)+32xyz * (x+y-z) - 8xy z^3 * (x+y-z)
=(24x y^2 z^2+32xyz - 8xy z^3)(x+y-z)
=8yz(3yz+32-8z^2)(x+y-z)
24x y^2 z^2 * (x+y-z) - 32xyz * (z-x-y) + 8xy z^3 * (z-x-y)
=24x y^2 z^2 * (x+y-z)+32xyz * (x+y-z) - 8xy z^3 * (x+y-z)
=(24x y^2 z^2+32xyz - 8xy z^3)(x+y-z)
=8yz(3yz+32-8z^2)(x+y-z)