The correct answer is 'figure out' (option C). This phrasal verb means to find a solution, answer, or method through thought or effort. The context requires creating a way to keep Sophie from leaving. 'Set up' means to arrange or establish, 'turn out' means to happen in a particular way, and 'stumble on' means to discover by chance.