
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 parabola with its vertex at the origin and its focus on the positive half of the x-axis, and it passes through the point (2,4).

(1) Find the standard equation of the parabola;

(2) If the line $y=kx-2$ intersects the parabola at points $A$ and $B$, and the x-coordinate of the midpoint of segment $AB$ is 2, find the length of segment $AB$.

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