Factorize : x(x+z)-y(y+z)

Matching exercise

    
Match the items on the right to the items on the left.
Step 1
Step 2
Step 3
Step 4
Step 5
x(x+z)-y(y+z)=x2+xz-y2-yz
=x2-y2+(xz-yz)
=(x-y)(x+y)+z(x-y)
=(x-y)x+y+z
=(x-y)(x+y+z)