\[\left( 5 + \sqrt{2} \right)^{2} + \left( 5 - \sqrt{2} \right)^{2} =\]
\[= 25 + 10\sqrt{2} + 2 + 25 - 10\sqrt{2} + 2 = 54.\]