a) \(M=\dfrac{x+\sqrt{x}+\sqrt{x}+1}{\left(\sqrt{x}+1\right)\left(x+1\right)}:\dfrac{x+1-2\sqrt{x}}{\left(x+1\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{\left(\sqrt{x}+1\right)^2}{\left(\sqrt{x}+1\right)\left(x+1\right)}.\dfrac{\left(x+1\right)\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)^2}=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)
b) \(x=\sqrt{7+4\sqrt{3}}+\sqrt{7-4\sqrt{3}}=\sqrt{\left(2+\sqrt{3}\right)^2}+\sqrt{\left(2-\sqrt{3}\right)^2}\)
\(=2+\sqrt{3}+2-\sqrt{3}=4\)
\(M=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}=\dfrac{\sqrt{4}+1}{\sqrt{4}-1}=\dfrac{2+1}{2-1}=3\)