Expanding the terms,
(x2+2xh+h2)+(y2+2yh+y2)=(a2+2ab+b2)
Using Pythagorean Theorem,
x2+h2=a2y2+h2=b2
We could subsitute the values in, and rewrite the equation
a2+2xh+b2+2yh=a2+2ab+b22xh+2yh=2abh(x+y)=ab
[ABC]=12AB⋅CH=12BC⋅AC12(x+y)h=12abh(x+y)=ab
I hope this helped,
Gavin