A= \(\sqrt{8+2\sqrt{7}}+\sqrt{8-2\sqrt{7}}\)=\(\sqrt{\left(\sqrt{7}+1\right)^2}+\sqrt{\left(\sqrt{7}-1\right)^2}=\)\(1+\sqrt{7}+\sqrt{7}-1=2\sqrt{7}\)
\(B=\sqrt{9+4\sqrt{5}}+\sqrt{9-4\sqrt{5}}\)
=\(\sqrt{\left(\sqrt{5}+2\right)^2}+\sqrt{\left(\sqrt{5}-2\right)^2}=\)\(\sqrt{5}+2+\sqrt{5}-2=2\sqrt{5}\)