a: \(P=\dfrac{x+\sqrt{x}-2}{x+2\sqrt{x}}\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)
\(=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}{\sqrt{x}\left(\sqrt{x}+2\right)}\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)
\(=\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
b: \(2P=2\sqrt{x}+5\)
\(\Leftrightarrow\dfrac{2\sqrt{x}+2}{\sqrt{x}}=2\sqrt{x}+5\)
\(\Leftrightarrow2x+5\sqrt{x}-2\sqrt{x}-2=0\)
\(\Leftrightarrow2x+3\sqrt{x}-2=0\)
\(\Leftrightarrow2x+4\sqrt{x}-\sqrt{x}-2=0\)
\(\Leftrightarrow2\sqrt{x}-1=0\)
hay x=1/4