
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
Given the function $$f\left(x\right)=\begin{cases}{x}^{2}+1,x\leqslant 0 \\ -2x,x > 0\end{cases}$$, find the value of $f(f(-2))$ and the value of $x$ when $f(x)=10$.

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