Let triangle ABC be a right triangle, and let H be the point on the side AB so that CH is perpendicular to AB.

Prove that (x+h)^2 + (y+h)^2 = (a+b)^2

(I would like a detailed answer)