Calculate lengths of ap,bp,cp. A(0,0) B(0,2k) C(2h,0) P(h,k)?

A(0.0),B(0,2k),C(2h,0),P(h,k).

(AP)^2 = (h-0)^2 + (k-0)^2 = h^2 + k^2
Ap = sqrt(h^2+k^2).

(BP)^2=(h-0)^2 + (k-2k)^2=h^2 + (-k^2)
BP = sqrt(h^2+(-k)^2).

(CP)^2=(h-2h)^2 + (k-0)^2=(-h)^2 + k^2
CP = sqrt((-h)^2+k^2).