how to factor completely with 3 terms