The admission fee at a museum is $5 for children and $16 for adults. Yesterday, 800 people came to the museum and $8400 was collected. How many children and how many adults came to the museum?