In a certain code, 'DOG' is coded as '415', 'CAT' is coded as '312', and 'FISH' is coded as '6198'. What is the code for 'HAT'?

Answer: A. 218
The letters H, A, and T correspond to the numbers 8, 1, and 20 respectively, but based on the pattern, 'HAT' is coded as '218'.