For a group of children, it holds that in every trio of children from the group, there is a boy named Adam, and in every quartet, there is a girl named Beata.

How many children can be in such a group at most, and what are their names in that case?

(J. Zhouf)

Hint. If you don't know how to start, consider a specific group of children and check if the given properties hold.