Three Treasures
Such fairy tales as The Prince and the Princess in the Forest and The Three Treasures of the Giants use the motif of overhearing the necessary knowledge.