② Square APFG with PA as the side. With the movement of point P, the size and position of the square also change. When the vertex F or G just falls on the Y axis, the coordinates of the corresponding point P can be written directly.
If this is the problem, it has been sent to the mailbox.