
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
There are 44 apples in a basket: 11 green, 14 yellow, and 19 red. Alena successively takes one apple at a time from the basket. If at any moment the total number of green apples taken is less than the total number of yellow apples taken, and the total number of yellow apples taken is less than the total number of red apples taken, she will stop taking any more apples from the basket.

(a) What is the maximum number of yellow apples Alena can take?

(b) What is the maximum number of apples Alena can take from the basket?

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