A small movie theater sells adults and kids snack packs. On Sunday they sold 60 snack bags for a total of $366. Each adult snack pack cost eight dollars and a kid snacks that cost five dollars. How many of each snack pack did the movie theater sell?