I run a small hotel and want to count the number of adults and children that are in the hotel

I run a small hotel and want to count the number of adults and children that are in the hotel.

Below is the format that I need to have the data in, where both the number of parents and children are in the same cell.
To keep things simple, I want to have all the rooms in column A, and the occupant details in column.

The issue is that I cannot find a formula for this. The challenge is that when there are more than 10 children, some formulas then add an adult.

enter image description here