x^2-6x+9-y^2
_____________
2x-6-2y
Factor the numerator and the denominator
(x^2-6x+9)-y^2
_______________
2(x - 3 - y)
[(x - 3)(x - 3)]-y^2
______________________
2(x - 3 - y)
(x - 3)^2 - y^2
______________________
2(x - 3 - y)
((x - 3) - y)((x - 3) + y)
___________________________
2(x - 3 - y)
____________________
x - 3 + y
___________
2