ax-ay+bx-by factor it by grouping