a) = \(\dfrac{x\left(x-y\right)+x-y}{x\left(x-1\right)-y\left(x-1\right)}=\dfrac{\left(x+1\right)\left(x-y\right)}{\left(x-1\right)\left(x-y\right)}=\dfrac{x+1}{x-1}\)
b) = \(\dfrac{x^2-5x+6}{x^2-2x}=\dfrac{x^2-2x-3x+6}{x^2-2x}=\dfrac{x\left(x-2\right)-3\left(x-2\right)}{x\left(x-2\right)}=\dfrac{\left(x-2\right)\left(x-3\right)}{x\left(x-2\right)}=\dfrac{x-3}{x}\)