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

Answer: A. 218
H corresponds to 8, A to 1, and T to 2, forming the code '218'.