In a certain code language, ‘CROW’ is coded as ‘9863’ and ‘WORK’ is coded as ‘3289’. What is the code for ‘K’ in the given code language?
2
Compare the two coded words and the digits used.
CROW uses the digit set {9, 8, 6, 3} for the letters C, R, O, W.
WORK uses the digit set {3, 2, 8, 9} for the letters W, O, R, K.
Letters common to both words are W, O and R, so their digits must lie in both sets. The common digits are {9, 8, 3}, which therefore belong to W, O, R.
The digit that appears only in CROW is 6, which must code the letter unique to CROW, namely C.
The digit that appears only in WORK is 2, which must code the letter unique to WORK, namely K.
Hence, the code for K is 2.