If the inradius in a right angled triangle with integer sides is $r$. Prove that
Q1) If $r= 4$, the greatest perimeter (in units) is $90$
Q2) If $r=5$, the greatest area (in sq. units ) is $330$
I tried to solve the question by
$=(s-a)\tan(A/2)$
where, $s$=semi perimeter, $a$ and $A$ are side length and angle corresponding to vertex $A$.
So I assumed vertex $A$ to be right angled and get $$r=(s-a)$$ But to maximise $s$ we need one more equation in $r$ and $a$.