Team theory and person-by-person optimization with binary decisions