Answer:
3x2y−3xy+12x−12
Take out 3xy common from first two terms and 12 from last two terms.
3xy(x−1)+12(x−1)
(x−1)(3xy+12)