
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 a line $l$ that passes through point $M(-2,1)$ and intersects the $x$ and $y$ axes at points $A$ and $B$ respectively.

(1) If $\angle{AM} = \angle{MB}$, find the equation of line $l$.
(2) If $|\angle{AM}| = 2|\angle{MB}|$, find the equation of line $l$.

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