how to factor an expression with variables