A line passes through the origin and makes equal angles with the positive coordinate axes. It intersects the lines and , p > 0, at the points A and B, respectively. If and the foot of the perpendicular from the point A on the line is M, then is equal to [2025]
(2)
We have, and

Line y = x passes through origin and makes equal angles with the positive coordinates axes.
Slope of y = x is , Slope of is
So,
Now, in ABM
.