How to find the product of binomials