You have 2 equations
Pythagoras theorem - say A and B are sides and H is hypteneuse
A^2 + B^2 = H^2
You know H (Given Constant)
B = Perimeter(Given) - H(Given) -A
Plug value of B and H into first equation...
I hope I am not helping you with your homework