foil method of (5x+2) (3x+1)