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