picks P2 based on least negatives for Z and largest range for x and y