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