Everything is tracked via computer. On day one, your account is credited with all its meal credits separated by adult and child. When you pay for your meal using your magic band, it knows that you purchased 2 adult meals and 2 children's meals and will deduct accordingly.
Snack credits are universal.