A right triangle has a hypotenuse of length 8 inches. If one angle is 40 degrees​, find the length of each leg