In a certain code language, ‘AIDS’ is coded as ‘7192’ and ‘DASH’ is coded as ‘9215’. What is the code for ‘H’ in the given code language?
5
List the digits used in each code word.
AIDS is coded as 7192, so the letters A, I, D, S together take the digits {7, 1, 9, 2}.
DASH is coded as 9215, so the letters D, A, S, H together take the digits {9, 2, 1, 5}.
The letters D, A and S are common to both words, and their digits {9, 2, 1} appear in both codes.
The digit 5 appears in the code of DASH but not in the code of AIDS. The only letter in DASH that is not in AIDS is H, so H must correspond to 5.
Hence, the code for H is 5.