Definition: In this task, you're given a passage, further information available on a particular linked term from the statement, and an answer term. Your job is to generate a question that can use the information provided to obtain the given answer. You should use the information on both passage and link information to create the question. Note that the answer to the question should be exactly the given answer, and if the answer is none, the answer to the question shouldn't be obtainable from the passage or linked information.
Input: Passage: Born to slaves in Midway, Texas, McJunkin was approximately 9 years old when the Civil War ended. He worked as a cowboy for freighters. He reportedly learned how to read from fellow cow punchers. McJunkin taught himself to read, write, speak Spanish, play the fiddle and guitar, eventually becoming an amateur archaeologist and historian. In 1868, McJunkin arrived in New Mexico and became a foreman on the Thomas Owens Pitchfork Ranch. McJunkin became a buffalo hunter and worked for several ranches in Colorado, New Mexico and Texas. He was also reported to be an expert bronc rider and one of the best ropers in the United States. He became foreman of the Crowfoot ranch near Folsom, New Mexico. In 2019, he was inducted into the Hall of Great Westerners of the National Cowboy & Western Heritage Museum.
Link Information: The American Civil War (also known by other names) was a civil war fought in the United States from 1861 to 1865 Answer: 4
Output:
For how many years did the war last at the end of which McJunkin was nine years old?