$\sqrt{57+40\sqrt2} - \sqrt{57-40\sqrt2}$
I'm completely clueless about how to use the formula $a^2 + 2ab + b^2 = (a+b)^2$ to factor the expressions.
With the help of commenters, I successfully factored the expressions.
$\sqrt{57+40\sqrt{2}} = 5+4\sqrt{2}$ and $\sqrt{57-40\sqrt{2}} = 5-4\sqrt{2}$. $5+4\sqrt{2}-4\sqrt{2}+5=10$.
$\sqrt{57+40\sqrt{2}}=\sqrt{25+40\sqrt{2}+32}=\sqrt{5^2+2\cdot 5\cdot 4\sqrt{2}+(4\sqrt{2})^2}=\sqrt{(5+4\sqrt{2})^2}=5+4\sqrt{2}$