Join 60,000+ competitive exam aspirants
In a certain code language, 'PIER' is coded as '1524' and 'RILE' is coded as '5321'. What is the code for 'P' in the given code language?
2
4
1
5
4
Identify the code by mapping the overlapping letters of the two given words to the corresponding numbers in the coded strings.
Identify the code by mapping the overlapping letters of the two given words to the corresponding numbers in the coded strings.
Analyze given strings
We are given 'PIER' = '1524' and 'RILE' = '5321'. Identify the common letters between both words, which are 'I', 'R', and 'E'.
Match letters to digits
In 'PIER', the letters are P, I, E, R and the numbers are 1, 5, 2, 4. In 'RILE', the letters are R, I, L, E and the numbers are 5, 3, 2, 1. The common numbers shared by both codes (1, 5, 2) correspond to the common letters (I, E, R). Therefore, the letter 'P' in 'PIER' must correspond to the only remaining digit, which is '4'.
A: 1 is the code for one of the common letters (I, E, or R), C: 3 is the code for the letter L, D: 5 is the code for one of the common letters.
B is correct because by comparing the common letters (I, R, E) in PIER (1524) and RILE (5321), we see that 1, 5, and 2 are shared; thus, P must be 4.
In coding puzzles, always list the letters and their corresponding potential digits to quickly eliminate commonalities before solving for the unique character.