I actually made one however with the help of an ellipse.
Can the construction be done without using the concept of ellipse? I want another solution since this chapter problem in a book has not yet introduced the concept of ellipse so there maybe a solution.
To anyone asking how I did it with an ellipse here's how: construct a circle with center and end point on mid point and end point of the hypotenuse, respectively. This should act as the median to the hypotenuse as it is half of the hypotenuse (theorem), and the circle act as the locus of the third vertex. Now construct ellipse whose constant lenght is the sum of the base pivoted at the end points of the hypotenuse. The intersection of the circle and ellipse is the vertex that satisfy the condition. The angle between leg should be right by Thales theorem. So there you go, that is my construction.



Suppose the legs sum to $s$, and the hypotenuse is $h$. Then the side $x$ satisfies $x^2+(s-x)^2=h^2$, that's $2x^2-2sx+s^2-h^2=0$, a quadratic equation for $x$. Now you can use ruler and compass to construct sums, difference, products, quotients, and square roots, so you can construct $x$, and $s-x$, and from there it's easy.