Given:
Letters in AGED: A, G, E, D
Digits: 7, 6, 1, 3
Letters in EARG: E, A, R, G
Digits: 1, 2, 3, 6
Common letters in both words: A, G, E
Now compare their common digits:
From AGED (7613) and EARG (1236):
E appears in both words.
The common digit in both codes is 1.
So, E = 1
G appears in both words.
The common digit is 6.
So, G = 6
A appears in both words.
The remaining common digit is 3.
So, A = 3
Now look at EARG → 1236
We already know:
E = 1
A = 3
G = 6
So the remaining digit must represent R.
Digits used: 1, 2, 3, 6
We identified 1, 3, 6
So R = 2
R is coded as 2