I want to know the answer to the following question:
What year did the First Opium War end?
All the background I'm provided with is that "Nanjing was invaded by British troops during the close of the First Opium War, which was ended by the Treaty of Nanjing in 1842.". Is that enough to answer the question?