
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 the 1st grade class 1, there are 50 students. During the math class, all students did two math problems together. One problem was about sets, and the other was about functions. It is known that 40 students answered the set problem correctly, and 31 students answered the function problem correctly. There were 4 students who got both problems wrong. Therefore, the number of students who got both problems right is \_\_\_\_\_\_.

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