Q:

Factoring polynomials; pre-calculus

$(x-y)^{2}+2(y-x)-24$ 
Answer: $(x-y-6)(x-y+4)$
I couldn't find a way to get to this answer, may you give me a hint in the process. Thanks! 

A:

Hint: $$y-x = -(x-y)$$${}{}{}{}{}$
After which you can factor in the same way considering $x-y$

