\(\dfrac{x^2-2xy+y^2}{x^2-xy}=\dfrac{\left(x-y\right)^2}{x\left(x-y\right)}=\dfrac{x-y}{x}\)
\(\dfrac{x^2-4}{3x+6}=\dfrac{\left(x-2\right)\left(x+2\right)}{3\left(x+2\right)}=\dfrac{x-2}{3}\)
a. \(\dfrac{x^2-2xy+y^2}{x^2-xy}=\dfrac{\left(x-y\right)^2}{x\left(x-y\right)}=\dfrac{x-y}{x}\)
b. \(\dfrac{x^2-4}{3x+6}=\dfrac{\left(x-2\right)\left(x+2\right)}{3\left(x+2\right)}=\dfrac{x-2}{3}\)