a) \(\sqrt{\left(\sqrt{5}-\sqrt{2}\right)^2}+\sqrt{\left(\sqrt{5}+\sqrt{2}\right)^2}\)
\(=\left|\sqrt{5}-\sqrt{2}\right|+\left|\sqrt{5}+\sqrt{2}\right|\)
\(=\sqrt{5}-\sqrt{2}+\sqrt{5}+\sqrt{2}\)
\(=\sqrt{5}+\sqrt{5}\)
\(=2\sqrt{5}\)
b) \(\sqrt{\left(\sqrt{2}-1\right)^2}-\sqrt{\left(\sqrt{2}-5\right)^2}\)
\(=\left|\sqrt{2}-1\right|-\left|\sqrt{2}-5\right|\)
\(=\sqrt{2}-1-\left(5-\sqrt{2}\right)\)
\(=\sqrt{2}-1-5+\sqrt{2}\)
\(=2\sqrt{2}-6\)