All passengers on the same PNR have to have the same itinerary (flights, dates, booking class) - you can't book 1 in Z and 1 P. So in this case it would either book in Z at $600x2 = $1200, or with UA's continuous pricing it could book into P with some price >$400x2=$800 and <$600x2=$1200