If 'APPLE' is to '13512' and 'BANANA' is to '214141', what is the code for 'GRAPE'?

Answer: B. 71815
Each letter is replaced by its position in the alphabet, with the last digit indicating the position of the letter in the word.