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