In this task, you are given a question. You have to answer the question based on your information.
Example: Roman Yakub won first price in a Choral Composition Competition at a liberal arts college founded by who?
Example solution: William Egbert
Example explanation: This is a good example, and output correctly answers the question.

Problem: What dynasty was founded by one of the prominent rulers of Afghanistan during the First Anglo-Afghan War, who had a dispute with former emir Shah Shujah hom they installed upon conquering Kabul in August 1839?
Solution: Barakzai dynasty