length of the shorter leg = k
length of the longer leg = 2k - 3
length of the hypothenus = 5 + 2k
to solve this problem, we have to use pythagorean theorem
pythagorean theorem states that

hyp = hypothenus
adj = adjacent
opp = opposite
now let's plug in our variables into the equation

this is an equation to find the value of k
we can further simplify this to get a quadratic equation

the above written equation can be used to solve for k
note: in opening the bracket
![\begin{gathered} (5k+2)^2=a^2+2ab+b^2 \\ \text{that is the how the bracket opens} \\ a=5 \\ b=2 \end{gathered}]()