\(A=\frac{\left(\sqrt{3}+\sqrt{5}\right)\left(\sqrt{3}+\sqrt{5}\right)}{\left(\sqrt{3}-\sqrt{5}\right)\left(\sqrt{3}+\sqrt{5}\right)}+\frac{\left(\sqrt{5}-\sqrt{3}\right)\left(\sqrt{5}-\sqrt{3}\right)}{\left(\sqrt{5}+\sqrt{3}\right)\left(\sqrt{5}-\sqrt{3}\right)}\\ A=\frac{3+2\sqrt{15}+5}{3-5}+\frac{5-2\sqrt{15}+3}{5-3}\\ A=\frac{3+2\sqrt{15}+5-\left(5-2\sqrt{15}+3\right)}{-2}\\ A=\frac{4\sqrt{15}}{-2}=-2\sqrt{15}\)
\(B=\frac{\sqrt{5}\left(5+2\sqrt{5}\right)}{\left(\sqrt{5}\right)^2}+\frac{\sqrt{3}\left(3+\sqrt{3}\right)}{\left(\sqrt{3}\right)^2}-\left(\sqrt{5}+\sqrt{3}\right)\\ B=\frac{5\left(\sqrt{5}+2\right)}{5}+\frac{3\left(\sqrt{3}+1\right)}{3}-\left(\sqrt{5}+\sqrt{3}\right)\\ B=\sqrt{5}+2+\sqrt{3}+1-\sqrt{5}-\sqrt{3}\\ B=3\)