In a right triangle the hypotenuse is a diameter of the circumscribed circle: c=2R=5.
The inradius of a right triangle is r=2a+b−c, so
1=2a+b−5 ⟹ a+b=7.
With Pythagoras a2+b2=25:
2ab=49−25=24 ⇒ ab=12.
a,b are roots of t2−7t+12=0, i.e. t=3 and t=4.
legs 3 and 4,hypotenuse 5.