Form a right triangle where the legs are the difference in heights (30 - 12 = 18 m) and the distance between the trees (24 m). The distance between the tops is the hypotenuse. Distance² = 18² + 24². Distance² = 324 + 576. Distance² = 900. Distance = √900 = 30 meters.