Sun Wukong thanked Lingji Bodhisattva, and Lingji Bodhisattva took the yellow-haired weasel and went west. Sun Wukong found Bajie in the woods, and the two of them killed all the big and small demons in the cave, rescued Tang Monk, and found some vegetarian food in the cave. They cooked some rice for their master, and then walked out of the cave, set fire to the Yellow Wind Cave, and continued on their way to the west.