Consider $x^{2}-6x+6y-y^{2}$ as a polynomial over variable $x$.
$$x^{2}-6x+6y-y^{2}$$
Find one factor of the form $x^{k}+m$, where $x^{k}$ divides the monomial with the highest power $x^{2}$ and $m$ divides the constant factor $-y^{2}+6y$. One such factor is $x-y$. Factor the polynomial by dividing it by this factor.