Multiplication involving binomials and trinomials in two variables