Let n = our shorter leg n + 7 = longer leg 13 = hypotenuse
The Pythagorean Theorem is a² + b² = c² where a and b are legs and c is the hypotenuse. Now, we plug in our given information, solve for n, then plug in the result of n into our leg measurements.