The difference of two squares factoring pattern states that a difference of two squares can be factored as follows:
[tex] a^2-b^2 = (a+b)(a-b) [/tex]
So, whenever you recognize the two terms of a subtraction to be two squares, you can factor it as the sum of the roots multiplied by the difference of the roots.
In this case, the squares are obvious: [tex] (x+2)^2 [/tex] is the square of [tex] x+2 [/tex], and [tex] (y+2)^2 [/tex] is the square of [tex] y+2 [/tex]
So, we can factor the expression as
[tex] (x+2)^2 - (y+2)^2 = [(x+2)+(y+2)] - [(x+2)+(y+2)] [/tex]
(the round parenthesis aren't necessary, I used them only to make clear the two terms)
We can simplify the expression summing like terms:
[tex](x+2)^2 - (y+2)^2 = [(x+2)+(y+2)][(x+2)-(y+2)] = (x+y+4)(x-y) [/tex]