Input: Article: The Everton board finally ran out of patience with Smith and he was sacked in March 2002 after an FA Cup exit at Middlesbrough, with Everton in real danger of relegation. David Moyes, was his replacement and guided Everton to a safe finish in fifteenth place. In 200203 Everton finished seventh, their highest finish since 1996. A fourth-place finish in 200405, ensured Everton qualified for the Champions League qualifying round. The team failed to make it through to the Champions League group stage and were then eliminated from the UEFA Cup. Everton qualified for the 200708 and 200809 UEFA Cup competitions and they were runners-up in the 2009 FA Cup Final.

Now answer this question: When did the Everton club board fire Smith?

Output: 2002

Input: Article: Three Han mathematical treatises still exist. These are the Book on Numbers and Computation, the Arithmetical Classic of the Gnomon and the Circular Paths of Heaven and the Nine Chapters on the Mathematical Art. Han-era mathematical achievements include solving problems with right-angle triangles, square roots, cube roots, and matrix methods, finding more accurate approximations for pi, providing mathematical proof of the Pythagorean theorem, use of the decimal fraction, Gaussian elimination to solve linear equations, and continued fractions to find the roots of equations.

Now answer this question: What achievement of the Han era can be used to help solve linear equations?

Output: Gaussian elimination

Input: Article: In addition to Somali, Arabic, which is also an Afro-Asiatic tongue, is an official national language in both Somalia and Djibouti. Many Somalis speak it due to centuries-old ties with the Arab world, the far-reaching influence of the Arabic media, and religious education. Somalia and Djibouti are also both members of the Arab League.

Now answer this question: For how long has Somalia had connections to the Arab world?

Output:
centuries