a) \(A=\left(\dfrac{\sqrt{x}-\sqrt{y}}{x-y}+\dfrac{\sqrt{xy}}{\sqrt{x}+\sqrt{y}}\right):\dfrac{\sqrt{xy}+1}{\sqrt{x}+\sqrt{y}}\)
\(=\dfrac{\sqrt{x}-\sqrt{y}}{\left(\sqrt{x}-\sqrt{y}\right)\left(\sqrt{x}+\sqrt{y}\right)}.\dfrac{\sqrt{x}+\sqrt{y}}{\sqrt{xy}+1}+\dfrac{\sqrt{xy}}{\sqrt{x}+\sqrt{y}}.\dfrac{\sqrt{x}+\sqrt{y}}{\sqrt{xy}+1}=\dfrac{1}{\sqrt{xy}+1}+\dfrac{\sqrt{xy}}{\sqrt{xy}+1}=\dfrac{\sqrt{xy}+1}{\sqrt{xy}+1}=1\)
b) \(B=3x-1-\sqrt{x^2-6x+9}\)
\(=3x-1-\sqrt{\left(x-3\right)^2}=3x-1-\left|x-3\right|\)
\(=\left[{}\begin{matrix}3x-1-x+3\left(x\ge3\right)\\3x-1+x-3\left(x< 3\right)\end{matrix}\right.\)
\(=\left[{}\begin{matrix}2x+2\left(x\ge2\right)\\4x-4\left(x< 3\right)\end{matrix}\right.\)