Thanks Aziz,
I do these a different way. My way is perhaps more versatile because you can use it no matter how many terms are inside the brackets.

I take the 1st term in the first bracket and multiply it by the second bracket then
I take the 2nd term in the first bracket and mltiply it by the second bracket then
I can keep doing this until I run out of terms in the first bracket.
Like this
$$\textcolor[rgb]{0,0,1}{(2+4\sqrt{10})}(4\sqrt5 -2)\\\\
=\textcolor[rgb]{0,0,1}{2}(4\sqrt5-2)\textcolor[rgb]{0,0,1}{+4\sqrt{10}}(4\sqrt5-2)\\\\
=8\sqrt5-4+16\sqrt{50}-8\sqrt{10}$$
.