\[2x^{2} + 4xy + 2y^{2} = 2 \cdot \left( x^{2} + 2xy + y^{2} \right) =\]
\[= 2 \cdot (x + y)^{2} = 2 \cdot (x + y)(x + y)\]