A group of four friends, David, Emily, Frank, and Grace, work on a project and earn $20, $30, $40, and $50, respectively. They agree to distribute the total earnings equally among themselves. What is the total amount of money that changes hands (i.e., the sum of all amounts given by those who earned more than the average, or equivalently, the sum of all amounts received by those who earned less than the average)?
10
15
20
25
30