To answer this question we will use the Pythagorean theorem.
Let l be the length (in meters) of the longer leg, then the length of the shorter (in meters) leg will be l-1.
Using the Pythagorean theorem we get:
[tex]l^2+(l-1)^2=5^2.[/tex]Simplifying the above result we get:
[tex]l^2+l^2-2l+1=25.[/tex]Adding like terms we get:
[tex]2l^2-2l+1=25.[/tex]Subtracting 25 from the above equation we get:
[tex]\begin{gathered} 2l^2-2l+1-25=25-25, \\ 2l^2-2l-24=0. \end{gathered}[/tex]Dividing the above equation by 2 we get:
[tex]\begin{gathered} \frac{2l^2-2l-24}{2}=\frac{0}{2}, \\ l^2-l-12=0. \end{gathered}[/tex]Now, notice that:
[tex]\begin{gathered} -1=3-4, \\ -12=3*(-4). \end{gathered}[/tex]Then:
[tex]l^2-l-12=(l+3)(l-4).[/tex]Therefore:
[tex]l^2-l-12=0\text{ if and only if }l=4\text{ or l=-3.}[/tex]Since l is the length of a leg of a right triangle, then l>0, therefore l=4.
Answer:
Length of the shorter leg: 4m.
Length of the longer leg: 3m.
Length of the hypotenuse: 5m.