solve p107