Historically, the Sui Dynasty experienced 37 years, and the Tang Dynasty experienced 7 years less than 8 times that of the Sui and Tang Dynasties. How many years did the Tang Dynasty go through?
历史上，隋朝经历了37年，唐朝经历的时间比隋唐的8倍少7年．唐朝经历了多少年？
<gadget id="calculator">37 * 8</gadget>
<output>296</output>

<gadget id="calculator">296 - 7</gadget>
<output>289</output>

<result>289</result>