Collecting Like Terms in Linear Expressions