Hmm..not entirely sure what you mean, but imagine the 151 selected computer science courses as pigeons. There are 300 choices, and for the sake of highlighting there must be a consecutive pair, we group the 300 choices as {1, 2}, {3, 4} ... In an extreme case, we would choose the computer course 1, 3, 5, 7, 9, ... , 299 as the first 150 of the selected courses, but the 151st one must be either 2, 4, 6, 7, 8, etc etc, so there must be at least 2 that are consecutively numbered.
Example of a selection:
1, 2 , 3, 5, 7, 9, ..., 299 - then the consecutively numbered pairs would be 1, 2 and 2, 3.
The {1, 2}, {3, 4}...{299, 300} are not computer courses, rather pigeon-holes that we have constructed to make the problem easier to solve/understand.