In a certain code language, ‘ATOM’ is coded as ‘9613’ and ‘BOAT’ is coded as ‘1938’. What is the code for ‘B’ in the given code language?
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 8
Here the digits are not in the order of the letters (A would be 9 in one word and 3 in the other), so compare the two words as sets: letters common to both words share the digits common to both codes.
ATOM = A, T, O, M and its code has 9, 6, 1, 3
BOAT = B, O, A, T and its code has 1, 9, 3, 8
Common letters A, T, O take the common digits 9, 1, 3
The letter left in BOAT is B and the digit left in its code is 8
So B is coded as 8 (and M as 6).