Ta có \(\sqrt{1+a^2}+\sqrt{2a}\le\sqrt{2\left(1+a^2+2a\right)}=\sqrt{2}\left(a+1\right)\).
Tương tự \(\sqrt{1+b^2}+\sqrt{2b}\le\sqrt{2}\left(b+1\right)\); \(\sqrt{1+c^2}+\sqrt{2c}\le\sqrt{2}\left(c+1\right)\).
Lại có \(\left(2-\sqrt{2}\right)\left(\sqrt{a}+\sqrt{b}+\sqrt{c}\right)\le\left(2-\sqrt{2}\right)\sqrt{3\left(a+b+c\right)}\le3\left(2-\sqrt{2}\right)\).
Do đó \(B\le\sqrt{2}\left(a+b+c+3\right)+3\left(2-\sqrt{2}\right)\le6\sqrt{2}+6-3\sqrt{2}=3\sqrt{2}+6\).
Dấu "=" xảy ra khi a = b = c = 1.