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'?
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 appears in both words. Therefore, 'T' is coded as '2'.