Ensure terms in the answer do not have a common factor