Talmud had a story about a king who had a beautiful princess. He loved her so much but the princess was at a verge of death due to an illness.
Many doctors prescribed and applied all kinds of medicines but none worked. Becoming very desperate, the king proclaimed that whoever heals the princess will marry the princess and will eventually become the next king as the reward. Three brothers who lived far away from the palace heard of the news of the princess being ill and discussed to find a way to heal her.
Each of these brothers had a magical item: the first brother had a magic telescope that can see anywhere; the second brother had a magic carpet that can fly anywhere; and finally the third brother had a magic apple that can heal any illness. So they verified the proclamation with the magic telescope, and then they flew out to the palace on the magic carpet and gave the princess the magic apple.
The princess got better immediately. The king threw a banquet on behalf of these three brothers and to celebrate the princess’ recovery. As he wanted to announce the person who will marry the princess at the banquet, he had a dilemma. The king couldn’t decide which one to give his daughter to because they all took part in healing her. Knowing this the first brother reasoned, “Unless I saw the proclamation, none of us could have known about this reward and thus, I am the one who deserve to marry the princess.”
Then, the second brother argued, “Even if we found out, without my magic carpet we couldn’t get here in time to heal her and so I should be the one.” Finally, the third brother jumped in and said, “True, but without my magic apple, how can the princess be healed and thus, I am the one who should marry her.”
The king chose the third brother as his son-in-law. Here is the reason why: the first and the second brother will still have their magical items (telescope and carpet) even after the princess got well. On the other hand, the third brother had no longer his magic apple because the princess ate it. Thus, the king decided to give his daughter to the one who gave EVERYTHING to save the princess.