Teacher:In this task, you're given a passage, further information available on a particular linked term from the statement, and an answer term. Your job is to generate a question that can use the information provided to obtain the given answer. You should use the information on both passage and link information to create the question. Note that the answer to the question should be exactly the given answer, and if the answer is none, the answer to the question shouldn't be obtainable from the passage or linked information.
Teacher: Now, understand the problem? Solve this instance: Passage: Kakizaki Hakyo was born in Matsumae Castle in 1764, the fifth son of the Matsumae Domain daimyo . The following year he was adopted as successor by karo (chief retainer or house elder) . At a young age he travelled to Edo, where he studied under and So Shiseki, learning the style of the Nanpin school. In the aftermath of the MenashiKunashir rebellion, he painted the , portraits of twelve Ainu chiefs who had sided with the Matsumae Domain; this series was presented to Emperor Kokaku. In 1791 he journeyed to Kyoto, where he studied under Maruyama Okyo. His style was influenced by his exchanges with the painters and literati of the Maruyama-Shijo school and he became friends with , , and in particular , with whom he hosted a moon-viewing party for , attended also by . From 1807, when the Matsumae clan were transferred to the , based around Yanagawa in Mutsu Province, Kakizaki Hakyo as karo worked for their reinstatement. In 1826, after falling ill in Edo, he died in his home town of Matsumae.
Link Information: First built in 1606 Answer: 158
Student:
How long had Matsumae Castle existed for the year that Hakyo was born?