At a school carnival, three students spend an average of $10. Six other students spend an average of $4. What is the average amount of money spent by all nine students?