Factorization of Expressions in the Form of ax+by and a² b² as a Product of Terms