In a right triangle, the lengths of the legs are in the ratio of 3:4. If the hypotenuse is 30 units long, what is the length of the shorter leg?
15
18
24
27