An isosceles right triangle has legs of equal length. If the
hypotenuse is 18 centimeters long, find the length of each leg.