
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 more than 20 but less than 30 students in the class, and everyone has a different birthday. Petya said, "The number of students older than me is twice the number of students younger than me." Katya said, "The number of students older than me is three times less than the number of students younger than me." How many students are there in the class if both Petya and Katya are correct?

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