You can prove $\displaystyle h^2=xy$ by using pythagoras' theorem for the big triangle and the two smaller triangles.
and you can prove that $\displaystyle a^2=yc$ and $\displaystyle b^2=xc$ by using $\displaystyle h^2=xy$ and pythagoras' theorem for the smaller triangles