A local theatre sells out for their show. They sell all 500 tickets for a total purse of $8,040.00. The tickets were priced at $15 for students, $12 for children, and $18 for adults. If the band sold three times as many adult tickets as children's tickets, how many of each type were sold?