Solve p107