\(a,=\dfrac{\left(x-3\right)\left(x+3\right)}{2\left(x+3\right)}\cdot\dfrac{2}{-\left(x-3\right)}=\dfrac{x-3}{2}\cdot\dfrac{2}{-\left(x-3\right)}=-1\\ b,=\dfrac{2x-2y}{x-y}=\dfrac{2\left(x-y\right)}{\left(x-y\right)}=2\)
a,\(\dfrac{x^2-9}{2x+6}:\dfrac{3-x}{2}=\dfrac{\left(x-3\right)\left(x+3\right)}{2\left(x+3\right)}.\dfrac{2}{3-x}=\dfrac{x-3}{3-x}=\dfrac{-\left(3-x\right)}{3-x}=-1\)
b, \(\dfrac{2x}{x-y}-\dfrac{2y}{x-y}=\dfrac{2x-2y}{x-y}=\dfrac{2\left(x-y\right)}{x-y}=2\)