We know the following details:
- M is at the extreme right.
- A is at the extreme left.
- Q is left to R but right to P.
- O is right to N and left to P.
- S is right to R and left to T.
From the given clues, the arrangement of the friends in the row is as follows:
\[
A, Q, R, S, T, P, N, O, M.
\]
Thus, the person sitting between P and M is N.