
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

In a box, there are red, blue, and green pencils. It is known that if two red pencils are removed, the number of pencils of each color will become equal. Furthermore, if 10 red pencils are then added to the box, the number of red pencils will be exactly half of all the pencils in the box. How many pencils were originally in the box?

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