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