The lengths of the legs of a right triangle are 8cm and 15cm. What is the length of the hypotenuse?

A. 17 cm
B. 23 cm
C. 46 cm