The lengths of the two legs of a right triangle are 18 centimeters and 12 centimeters. What is the exact length of the hypotenuse?