Carrie found a stone in the shape of a 30°–60°–90° triangle. The hypotenuse has a length of 5 cm. What is the length of the shorter leg?