Solve p117