how to factor with 2 variables