Choosing a partner and teammates