3y-6+xy-2x

Group the first two terms and the last two terms.

(3y-6)+xy-2x

Factor out the greatest common factor (GCF) from each group.

3(y-2)+x(y-2)

3(y-2)+x(y-2)

Factor the polynomial by factoring out the greatest common factor, y-2.

(y-2)(3+x)

Factor by Grouping 3y-6+xy-2x