about the boy immediately recognizing the line as the other half of what the girl told him , and repeating the line the girl had told him , pleasing the emperor , getting the job , going back , and marrying the girl .