My friend and I are among the 100 students.
Total number of ways of selecting 2 students out of 100 students =100C2
(a) The two of us will enter the same section if both of us are among 40 students or among 60 students.
∴ Number of ways in which both of us enter the same section =40C2 + 60C2
∴ Probability that both of us enter the same section

(b)P(we enter different sections)
= 1 − P(we enter the same section)
= 1-17/33 = 16/33