
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
Twenty students are taking both geometry and history. There are 40 students taking geometry. There are 15 students who are taking history only. How many students are taking geometry or history but not both?

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