Each word is coded as = (Rank of the given word in the dictionary of words formed by the letters of the word)
So Rank of the word MANGO in the dictionary of words formed by the letters of MANGO = 51
Rank of the word GUAVA in the dictionary of words formed by the letters of GUAVA = 32
Similarly Rank of the word PEACH in the dictionary of words formed by the letters of PEACH = 109