An elementary school buys tickets for a field trip to the zoo. The number of children going on the field trip is 3 more than 8 times the number of adults. Tickets for children cost $6 each and tickets for adults cost $11 each. If the total cost of all of the tickets is $1670, how many tickets of each type did the school purchase?