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