solve p6