In a coded language, 'CAT' is coded as '312', 'DOG' is coded as '415', and 'BAT' is coded as '213'. What is the code for 'T' in this coding system?
Answer: B. 2
The common letters in 'CAT' and 'BAT' are 'A' and 'T'. Since 'A' is coded as '1' in 'CAT' and '2' in 'BAT', 'T' must be coded as '2' since it is the only letter that appears in both words with the same position.