Group the like term together:
− ab2, b2a2, 7b2a, − 3a2b2 and 2ab2
− ab2, 7b2a, 2ab2 and b2a2, − 3a2b2