12x^2y-6xy^2/3xy

12x^2y-6xy^2 = 3xy(4x-2y)

so, when you divide by 3xy, yo just get 4x-2y