Given 3n people that the i-th person can pass a test with probability p_i, now you are required to divide them to n groups that each group has 3 people. The score of one group equals 1 if at least two people pass the test, 0 otherwise. In order to maximize the expectation of total score, how do you group them?
I've thought about this problem for a bit, and I think intuitively it makes sense to group two large p_i with a small p_i. Also, i've thought about in the optimal arrangement, swapping any two p_i from different groups should lower the expectation. I can write out mathematically the difference in expectation when swapping two of the students, but it doesn't seem to give any obvious result. I've hit a wall.