You will be given a definition of a task first, then some input of the task.
This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Passage: With the 1335 Treaty of Trentschin and the 1348 Treaty of Namslau, most of the Silesian duchies were ruled by the Silesian Piast dukes under the feudal overlordship of the Bohemian kings, and thus became part of the Crown of Bohemia. In 1476 the Crossen district became part of the Margraviate of Brandenburg, when the widow of the Piast ruler, Barbara von Brandenburg, daughter of Elector Albert Achilles, inherited Crossen. In 1526 Silesia was acquired by Austria's Habsburg Monarchy after the death of King Louis II of Bohemia. Brandenburg contested the inheritance, citing a treaty made with Frederick II of Legnica, but Silesia largely remained under Habsburg control until 1742.
Question: How many years was Silesia under Habsburg control?
Answer type: Number
Output:
216.