
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 10th grade class 1 has a total of 50 students. During a math class, all students attempted two math problems together. One problem was about sets, and the other was about functions. It is known that 40 students answered the sets problem correctly, 31 students answered the functions problem correctly, and 4 students got both questions wrong. The number of students who answered both problems correctly is _________.

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