To factor $ 3y^{3}+18y^{2}+y+6 $ we can use factoring by grouping:
Group $ \color{blue}{ 3x^{3} }$ with $ \color{blue}{ 18x^{2} }$ and $ \color{red}{ x }$ with $ \color{red}{ 6 }$ then factor each group.
$$ \begin{aligned} 3y^{3}+18y^{2}+y+6 = ( \color{blue}{ 3x^{3}+18x^{2} } ) + ( \color{red}{ x+6 }) &= \\ &= \color{blue}{ 3x^{2}( x+6 )} + \color{red}{ 1( x+6 ) } = \\ &= (3x^{2}+1)(x+6) \end{aligned} $$