Sorry, I don't know the proper solution, but the answer found by brute force is 86 and 121. Then after the 86th student is chosen, there are 85 students on the one hand and 35 on the other side. So 2 * C(85, 2) = C(120, 2), if my calculations are right.