A movie theater has a seating capacity of 315. The theater charges $5 for children, $7 for students, and $12 of adults. There are half as many adults as there are children. If the total ticket sales was $2,282, How many children, students, and adults attended