Question: 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?
Sentence (from "First Anglo-Afghan War"): The war is notorious for the loss of 4,500 British and Indian soldiers, plus 12,000 of their camp followers, to Afghan tribal fighters, but the British defeated the Afghans in the concluding engagement.
Relevant evidence: No