
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
The red pencil costs 27 kopecks, and the blue pencil costs 23 kopecks. You can spend no more than 9 rubles and 40 kopecks on the purchase of pencils. It is necessary to purchase the maximum possible total number of red and blue pencils. At the same time, the number of red pencils should be as few as possible, but 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 purchased under these conditions?

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