Li Wei, a scholar from a poor family, traveled to the Yan Kingdom and activated the strategy deduction system. He outsmarted the squire's grain embezzlement case and gained the qualification to be a child. He earned his first pot of gold by brewing vinegar, and met Zhao Meng, the queen of the generals. Later, he realized the threat of mountain bandits and helped the county magistrate Zhang Huaimin to set up an ambush to defeat the enemy. Due to his merit, he was recommended to study in the state. In the state school, he secretly investigated and exposed the crimes of deputy lecturer Zhou Wenyuan in colluding with mountain bandits to sell illegal salt, and further gained a foothold. Li Wei relied on his resourcefulness step by step to rise from a desperate situation.