If MISTAKE is coded as 9765412 and NAKED is coded as 84123, How are the following words coded ? STAIN

Answer: D. 65478

The alphabets in the given words are coded as follows :
 

M I S T A K E N D
9 7 6 5 4 1 2 8 3

S is coded as 6,
T as 5,
A as 4,
I as 7  and
N as 8.
So, STAIN is coded as 65478.