A right triangle and two of its side lengths are shown in the diagram. 39 cm 12 cm x cm Which measurement is closest to the value of x in centimeters?
A: 37.1 cm
B: 51 cm
C: 27 cm
D: 40.8 cm​