(2)
Suppose as shown in the figure, ask the coordinates of point P when APB reaches the maximum value, and according to the law of materials, we can know that the tangent point at the bottom of point P is the maximum value when APB reaches the maximum value. Then we can know the coordinates of C (that is, the midpoint between A and B) (0, (m-n)/2) from the coordinates of A and B.
So OP=(m-n)/2, so OB=OP=(m-n)/2, then in RT△OBC, given BC and OC, we can find the length of OC, that is, under the root sign (mn), that is, the abscissa of point P.
If you don't understand anything, please ask questions and hope to adopt them!