The answer that gets given is james and cook.
Enter that where the labyrinth asks and you should be able to move on. If it is rejected, check the spelling carefully, since these riddles are usually unforgiving about it.