a: =(x-y)(5-y)
b: \(=x^2-6x+9-y^2=\left(x-3-y\right)\left(x-3+y\right)\)
\(a,5\left(x-y\right)-y\left(x-y\right)=\left(5-y\right)\left(x-y\right)\\ b,x^2-6x-y^2+9=\left(x^2-6x+9\right)-y^2=\left(x-3\right)^2-y^2=\left(x-y-3\right)\left(x+y-3\right)\)