
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
A line passes through point P (-3, 1) and intersects the x-axis and y-axis at points A and B, respectively.
1. If point P is exactly the midpoint of line segment AB, find the equation of line l.
2. If $\overrightarrow{AP} = 2\overrightarrow{PB}$, find the equation of line l.

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