This task involves annotating the answer type to a given question that involve some kind of complex reasoning (including numerical reasoning). Note that the questions require looking at more than one part of the passage to answer. There are 3 possible answer types (i) spans, (ii) numbers and (iii) dates. If the answer can be found in the passage, label it as "span". If the answer is a number, label as "number". Similarly, label "date" if you think the answer to the given question is a date.

Let me give you an example: Passage: The outbreak of the Seven Years' War in Europe in 1756 resulted in renewed conflict between French and British forces in India. The Third Carnatic War spread beyond southern India and into Bengal where British forces captured the French settlement of Chandernagore in 1757. However, the war was decided in the south, where the British successfully defended Madras, and Sir Eyre Coote decisively defeated the French, commanded by Comte de Lally at the Battle of Wandiwash in 1760. After Wandiwash, the French capital of Pondicherry fell to the British in 1761. The war concluded with the signing of the Treaty of Paris in 1763, which returned Chandernagore and Pondichery to France, and allowed the French to have "factories" in India but forbade French traders from administering them. The French agreed to support British client governments, thus ending French ambitions of an Indian empire and making the British the dominant foreign power in India.
Question: Which french settlement did the British capture first, Chandernagore or Pondicherry?
The answer to this example can be: span
Here is why: The answer "Chandernagore" is a word from the passage. So, the answer type is "span".

OK. solve this:
Passage: Ferdinand died in January 1516 and was succeeded by his mentally unstable daughter Joanna. Within a few weeks, her son proclaimed himself her co-ruler as King Charles I of Castile and Aragon. Charles had been raised in Netherlands and his affairs were mostly controlled by the Flemish noble William de Croy, sieur de Chievres. In 1517, the seventeen-year-old King sailed to Castile, where he was formally recognised as King of Castile. There, his Flemish court provoked much scandal, as de Croy shamelessly sold government privileges for personal money and installed other Flemish nobles into government offices. In May 1518, Charles traveled to Barcelona in Aragon, where he would remain for nearly two years. Here, he haggled with Aragon's slightly stronger cortes, the Generalitat, for privileges and his formal recognition as King of Aragon. Aragon managed to maintain more local control than Castile did, but mostly because Aragon was poorer and there was no point in pressing the issue for extra tax money that wasn't there to be collected. In 1519, the King's paternal grandfather, Holy Roman Emperor Maximilian I, died. Charles competed with King Francis I of France to win the imperial election by aggressively bribing prince-electors. Charles won, becoming Emperor Charles V. He left Aragon to return to Castile to raise funds to pay down the debts he had incurred in the election. The taxes granted to Charles at a Castilian cortes in Corunna would help spark the Revolt of the Comuneros of Castile. Of more importance for Aragon, in the summer of 1519 Charles granted his permission to the Germanies to arm themselves against the raiding Muslim fleets. While permission had previously been granted under Ferdinand, Charles was able to force the Valencian nobles to accept this decision.
Question: How many years was it between when Ferdinand died and when Maximilian I died?
Answer:
number