Explanation
Three coded sentences
In sentence coding, a word that appears in two sentences has the code that appears in both. Find the common word, then the common code.
Three coded sentences; common word highlighted in matching colours
"sky is blue" ∩ "blue and green"
Sky is blue, and blue and green. The common word is blue.
The common code is pa. So blue is pa.
"sky is blue" ∩ "blue and green" → blue = pa
Elimination
Now sky appears in the first and third sentences: common code ta. And appears in the second and third: common code ra.
Elimination: sky ∩ sky and sun → ta; and → ra
Letter-to-number coding
In number coding, letters usually become their positions. The code may be the positions themselves, their sum, or a pattern on them.
Letter-to-number coding: A=1 … Z=26; sum or product
Trap
Trap: codes are usually jumbled. Never assume the first code belongs to the first word.
Trap: code order ≠ word order
Worked example
"pen is red" = "mo la si", "red ink" = "si re", "ink is blue" = "re la tu". Common in 1 and 2: red = si.
Common in 2 and 3: ink = re. Common in 1 and 3: is = la.
So pen = mo and blue = tu.