A group of 42 people went to an amusement park. The admission fee for adults is $16. The admission fee for children is $12. The group spent $568 to get into the park. How many adults and how many children were in the group?