Thanks for the question! Let’s take a look at this question. We’re told that the student takes neither P nor W. This means that there are 5 courses left the student can choose from: H, L, M, S, and T.
Now, first, let’s take a look at (B). Let’s say the student doesn’t take H and M. Then the courses left in are L, S, and T. If we take a look at the rules, then none of them are violated, so (B) is fine and is the correct answer.
Now, let’s take a look at (C). Let’s say the student doesn’t take S and H. That means the student has to take L, M, and T, since we know that the student has to take at least 3 courses out of the 7. But now take a look at rule 2. If M is taken, then T cannot be taken. Since (C) violates rule 2, it can’t be the correct answer.
Hope this helps. Feel free to ask any further questions that you might have.