The hypotenuse of an isosceles right triangle is 12 inches. What is the length of each leg?