
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
A group of boys and girls ate at a restaurant where only pizzas cut into 12 slices are served. Each boy ate 6 or 7 slices, and each girl ate 2 or 3 slices.

It is known that 4 pizzas were not enough, and with 5 pizzas, there were leftovers.

Calculate the number of boys and girls in the group.

Present the answer in LaTex format: \boxed{Your answer}
user