Everyone contributed money to buy a farewell gift for the teacher.
Everyone contributed money to support the charity.