\(\sqrt{x}+\sqrt{2-x}\le\sqrt{2\left(x+2-x\right)}=2\)
\(\sqrt{x}+\sqrt{2-x}\ge\sqrt{x+2-x}=\sqrt{2}\)
\(\Rightarrow\dfrac{2}{2}\le P\le\dfrac{2}{\sqrt{2}}\Rightarrow1\le P\le\sqrt{2}\)
Mà \(P\in Z\Rightarrow P=1\)
\(\Rightarrow\sqrt{x}+\sqrt{2-x}=2\Rightarrow x=1\)