Five set of numbers from 1 to 10 are formed as (1, 2), (3, 4), (5, 6), (7, 8) & (9, 10)
If first set is coded as 5
Second set is coded as 7
Third set is coded as 6
Fourth set is coded as 8
Then code for fifth set is
There are total 5 letters used in the spellings of ONE and TWO. These letters are {O, N, E, T, W} (Repeated letter will not be counted twice)
Similarly for all sets.