
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
Let the number of students who participated in both competitions be x. Given that there are 37 students in total, 30 participated in the math competition, 20 participated in the physics competition, and 4 participated in neither, determine the value of x.

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