\(x+y\le xy\Rightarrow\dfrac{1}{x}+\dfrac{1}{y}\le1\)
\(M=\dfrac{1}{2\left(x^2+y^2\right)+y^2}+\dfrac{1}{2\left(x^2+y^2\right)+x^2}\le\dfrac{1}{4xy+y^2}+\dfrac{1}{4xy+x^2}\)
\(B\le\dfrac{1}{25}\left(\dfrac{4}{xy}+\dfrac{1}{y^2}\right)+\dfrac{1}{25}\left(\dfrac{4}{xy}+\dfrac{1}{x^2}\right)=\dfrac{1}{25}\left(\dfrac{1}{x^2}+\dfrac{1}{y^2}+\dfrac{2}{xy}+\dfrac{6}{xy}\right)\)
\(M\le\dfrac{1}{25}\left[\left(\dfrac{1}{x}+\dfrac{1}{y}\right)^2+\dfrac{3}{2}\left(\dfrac{1}{x}+\dfrac{1}{y}\right)^2\right]=\dfrac{1}{10}\left(\dfrac{1}{x}+\dfrac{1}{y}\right)^2\le\dfrac{1}{10}\)
\(M_{max}=\dfrac{1}{10}\) khi \(x=y=2\)