
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 class 1 of Grade 11, there are 50 students. The whole class did two math problems together in the math class, one about sets and the other about functions. It is known that 40 students answered the set problem correctly, 31 students answered the function problem correctly, and 4 students answered both problems incorrectly. How many students answered both problems correctly?

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