You start by writing out the lecture possibilities for each of the five weeks as described in the indented rules (1st week K/L/M, 2nd week K/L/M/N, 3rd week M/N, fourth week M/N, fifth week N/O/P) and then narrow down the possibilities from there. Since 3rd and 4th weeks can only be either M or N, you eliminate M and N from the other weeks and further narrow down the possibilities from that with two templates. 3rd M & 4th N or 3rd N & 4th M. It gets pretty easy once you break it down into those two templates/scenarios.