\(A=\sqrt{2}\left(\sqrt{21}+3\right)\sqrt{5-\sqrt{21}}=\left(\sqrt{21}+3\right)\sqrt{10-2\sqrt{21}}=\left(\sqrt{21}+3\right)\left(\sqrt{7}-\sqrt{3}\right)=4\sqrt{3}\)
\(B=\sqrt{2}\left(\sqrt{5}-1\right)\sqrt{3+\sqrt{5}}=\left(\sqrt{5}-1\right)\sqrt{6+2\sqrt{5}}=\left(\sqrt{5}-1\right)\left(\sqrt{5}+1\right)=5-1=4\)