Five different books (P, Q, R, S, T) are to be arranged on a shelf. The books R and S are to be arranged first and second, respectively from the right side of the shelf. The number of different orders in which P, Q and T may be arranged is ______. A. 2 B. 6 C. 12 D. 120

GATE 2019 · General Aptitude · Combinatorics · medium

Answer: 6

  1. Fix positions of R and S: 'First from right' = position 5; 'second from right' = position 4. Assign R to pos 5 and S to pos 4. These 2 books are now fixed.
  2. Arrange P, Q, T in remaining 3 positions: Positions 1, 2, 3 are free. Arrange 3 distinct books P, Q, T in 3 ordered slots: 3 * 2 * 1 = 6.