To factor $ 3xy+12x+4y+16 $ we can use factoring by grouping.
Group $ \color{blue}{ 3xy }$ with $ \color{blue}{ 12x }$ and $ \color{red}{ 4y }$ with $ \color{red}{ 16 }$ then factor each group.
$$ \begin{aligned} 3xy+12x+4y+16 &= ( \color{blue}{ 3xy+12x } ) + ( \color{red}{ 4y+16 }) = \\ &= \color{blue}{ 3x( y+4 )} + \color{red}{ 4( y+4 ) } = \\ &= (3x+4)(y+4) \end{aligned} $$