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