(A)→(P), (R): The ray bends towards the normal when going from rarer to denser medium. (B)→(Q), (S), (T): The ray bends away from the normal when going from denser to rarer medium. (C)→(P), (R), (T): The ray will not deviate if medium remains same. (D)→(Q), (S): The ray bends away from the normal when going from denser to rarer medium.