The boy instantly realized that the sentence written by the herbal practitioner's daughter was a perfect match for the one given by the emperor. He gave the right answer and stood first in the examination. Impressed by his performance,, the emperor adjudged him as the new minister. After becoming minister, the young boy married the practitioner's daughter.