Follow this link
https://www.sarthaks.com/50618/sum-the-hypotenuse-side-right-angled-triangle-given-show-that-the-area-the-triangle-maximum