\(P=\dfrac{x}{\left(\sqrt{x}+\sqrt{y}\right)\left(1-\sqrt{y}\right)}-\dfrac{y}{\left(\sqrt{x}+\sqrt{y}\right)\left(\sqrt{x}+1\right)}-\dfrac{xy}{\left(\sqrt{x}+1\right)\left(1-\sqrt{y}\right)}\)
\(=\sqrt{xy}+\sqrt{x}-\sqrt{y}\)
Ta có: \(P=\sqrt{xy}+\sqrt{x}-\sqrt{y}=2\)
\(\Leftrightarrow\left(\sqrt{x}-1\right)\left(\sqrt{y}+1\right)=3\)
\(\Rightarrow\left(\sqrt{x}-1,\sqrt{y}+1\right)=\left(1,3;3,1\right)\)
\(\Rightarrow\left(x,y\right)=\left(4,4;16,0\right)\)