
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 red pencil costs 27 kopecks, and a blue pencil costs 23 kopecks. The maximum amount that can be spent on pencils is 9 rubles and 40 kopecks. It is necessary to buy the maximum possible total number of red and blue pencils, with the condition that the number of red pencils should be minimized, and the number of blue pencils should not differ from the number of red pencils by more than 10. How many red and blue pencils should be bought under these conditions?

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