Correct Answer - Option 2 : 8
Logic: Position of letter is added and sum of digit is taken of total.
R → 18, A → 1, T → 20
18 + 1 + 20 = 39 → 3 + 9 = 12
R → 18, A → 1, N → 14
18 + 1 + 14 = 33 → 3 + 3 = 6
code for RAG will be
R → 18, A → 1, G → 7
18 + 1 + 7 = 26 → 2 + 6 = 8
Hence 8 is correct answer.