The Emir had him seized and thrown into the garret, where he began to cut through the floor with a knife he managed to get from some one of the Emir's people. He cut and cut until he made an opening over the chamber of the Emir's daughter, who had just filled a plate with food and gone away. The youth jumped down, emptied the plate, ate what he wanted, and crept back into the garret. The second, third, and fourth days he did this also, and the Emir's daughter could not think who had taken away her meal. The next day she hid herself under the table to watch and find out. Seeing the youth jump down and begin to eat from her plate, she rushed out and said to him, "Who are you?"
"I had a dream, but what it was I would tell neither father nor mother, nor the traveller, nor yet the Emir. The Emir shut me up in the garret. Now everything depends on you; do with me what you will."
The youth looked at the maiden, and they loved each other and saw each other every day.
The King of the West came to the King of the East to court the daughter of the King of the East for his son. He sent an iron bar with both ends shaped alike and asked: "Which is the top and which is the bottom? If you can guess that, good! If not, I will carry your daughter away with me."
The King asked everybody, but nobody could tell. The King's daughter told her lover about it and he said: "Go tell your father the Emir to throw the bar into a brook. The heavy end will sink. Make a hole in that end and send the bar back to the King of the West." And it happened that he was right, and the messengers returned to their King.
The King of the West sent three horses of the same size and color and asked: "Which is the one-year-old, which is the two-year-old, and which the mare? If you can guess that, good. If not, then I will carry off your daughter."
The King of the East collected all the clever people, but no one could guess. He was helpless and knew not what to do. Then his daughter went to her lover and said, "They are going to take me away," and she told him when and how.
The youth said: "Go and say to your father, 'Dip a bundle of hay in water, strew it with salt, and put it near the horses' stall. In the morning the mare will come first, the two-year-old second, the one-year-old last.'"
They did this and sent the King of the West his answer.
He waited a little and sent a steel spear and a steel shield, and said: "If you pierce the shield with the spear, I will give my daughter to your son. If not, send your daughter to my son."