choose events to join so that the sum of preferences of chosen events is maximized