
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 $y=x^2+mx+n$ ($m, n \in \mathbb{R}$). When $y=0$, the set of corresponding $x$ values is $\{-2, -1\}$.
1. Find the values of $m$ and $n$.
2. If $x \in [-5, 5]$, find the maximum and minimum values of this function.

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