Hi, we have our initial setup in which we know that L and M teach the same language, and since that language cannot be f or r, it must be g.
J _ L/M_ S _ L/M_ F g r
For this question we know that p is at the junior school and doesn't teach French, so P must teach R. This also enables us to place N at the senior school.