To solve this coding problem, first analyze the relationship between the letters in the original word and their coded form.
Given: 'FAME' → 'LGGY'
Check the positions of the letters in the alphabet:
F (6), A (1), M (13), E (5)
L (12), G (7), G (7), Y (25)
Look at the pattern between each letter and its coded counterpart:
- F(6) to L(12): 6 + 6 = 12 (Add 6)
- A(1) to G(7): 1 + 6 = 7 (Add 6)
- M(13) to G(7): 13 - 6 = 7 (Subtract 6)
- E(5) to Y(25): 5 + 20 = 25 (Add 20)
It seems the coding pattern involves adding or subtracting certain values. Let’s consider a pattern:
Add 6, Add 6, Subtract 6, Add 20.
Now, apply the same pattern to the word 'LION':
L (12), I (9), O (15), N (14)
Applying the pattern:
- L(12) + 6 = 18 → R
- I(9) + 6 = 15 → O
- O(15) - 6 = 9 → I
- N(14) + 20 = 34 → 34 - 26 = 8 → H (Since 26 letters in alphabet, wrap around)
Hence, 'LION' will be coded as 'ROIH'.
Therefore, the correct answer is option (B) ROIH.