how yo combine 3 polynomials?