Answer:
Each leg is 8 units long
Explanation:
see the attached figure to better understand the problem
we know that
Any right triangle must satisfy the Pythagorean Theorem
so

where
c is the hypotenuse (greater side)
a and b are the legs (perpendicular sides)
In this problem we have

substitute




therefore

Each leg is 8 units long