which of the following is equal to the rational expression when x does not equal -2 or-1

Given the expression:
[tex]\frac{x^2-4}{(x+2)(x+1)}[/tex]notice that on the numerator we have a square conjugate, then, we can factorize it like this:
[tex]x^2-4=(x+2)(x-2)[/tex]doing this on the original expression, we havE:
[tex]\frac{x^2-4}{(x+2)(x+1)}=\frac{(x+2)(x-2)}{(x+2)(x+1)}=\frac{x-2}{x+1}[/tex]therefore, the expression (x-2)/(x+1) is equivalent to the given expression