solve p12