
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
A class of 50 students took tests in long jump and shot put. The number of students who passed each test was 40 and 31, respectively. Four students failed both tests. How many students passed both tests?

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