
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
Hudson Middle School has 120 students in the eighth grade. Each student is enrolled in a math class, a foreign language class, a music class, or any combination of these three. This year, 82 students are enrolled in math classes, and 71 students are taking foreign language classes. Due to scheduling constraints, 20 students had to opt for a music class instead of a foreign language or math. How many students are enrolled exclusively in math classes?
A) 26
B) 29
C) 31
D) 34
E) 37

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