Differentiate between like and unlike terms