A sum of $50 000 was donated to a school. $30 000 was used for school building and $20 000 for student welfare.