teams selection problem