
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
Ringo, Paul, and George are collecting marbles. When Ringo places his marbles into bags with 8 marbles per bag, he has 5 marbles leftover. When Paul does the same with his marbles, he has 3 marbles leftover. George also joins them, and he has 7 marbles leftover when using the same bag size. Determine the number of marbles that will be leftover after they combine and rebag all their marbles.

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