Read this article and answer this question This time, Pagan could not do anything to retake Martaban because it was facing an existential threat from the north. The Mongols demanded tribute, in 1271 and again in 1273. When Narathihapate refused both times, the Mongols systematically invaded the country. The first invasion in 1277 defeated the Burmese at the battle of Ngasaunggyan, and secured their hold of Kanngai . In 1283-1285, their forces moved south and occupied down to Tagaung and Hanlin. The king fled to Lower Burma in 1285 before agreeing to submit to the Mongols in June 1286. Soon after the agreement was finalised, the king was assassinated in July 1287. The Mongols once again invaded south toward Pagan. Recent research indicates that Mongol armies may not have reached Pagan itself, and that even if they did, the damage they inflicted was probably minimal. But the damage was already done. All the vassal states of Pagan revolted right after the king's death, and went their own way. In the south, Wareru, the man who had seized the governorship of Martaban in 1281, consolidated Mon-speaking regions of Lower Burma, and declared Ramannadesa  independent. In the west too, Arakan stopped paying tribute. The 250-year-old Pagan Empire had ceased to exist.
How many years passed between the first invasion by the Mongols and the king's submission to the Mongols?
9