A movie theater has a seating capacity of 139. The theater charges $5.00 for children, $7.00 for students, and $12.00 for adults. There are half as many adults as there are children. If the total ticket sales was $ 1006, How many children, students, and adults attended?