In a certain code language, ‘CADS’ is coded as ‘4689’ and ‘DASH’ is coded as ‘6985’. What is the code for ‘H’ in the given code language?
5
List the digits used in each code word.
CADS is coded as 4689, so C, A, D, S share the digits {4, 6, 8, 9}.
DASH is coded as 6985, so D, A, S, H share the digits {6, 9, 8, 5}.
Letters D, A and S are common to both words, and the digits {6, 8, 9} appear in both codes for them.
The digit 5 is present in DASH's code but not in CADS's code, while the letter H is present in DASH but not in CADS.
Therefore, the letter H must correspond to the digit 5.
Hence, the code for H is 5.