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

Answer: A. 3765485

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

D is coded as 3,
I as 7,
S as 6,
T as 5,
A as 4  and
N as 8.
So, the code for DISTANT is 3765485.