\(B=\left(\frac{x}{y^2+xy}-\frac{x-y}{x^2+xy}\right):\left(\frac{y^2}{x^3-xy^2}+\frac{1}{x+y}\right):\frac{3y}{y}\)
\(=\frac{x^2-xy+y^2}{xy\left(x+y\right)}\cdot\frac{x\left(x^2-y^2\right)}{x^2-xy+y^2}\cdot\frac{y}{3x}\)\(=\frac{x-y}{y}\cdot\frac{y}{3x}=\frac{x-y}{3x}\)