Riddle: In a far-off kingdom, there is a castle with five rooms. Each room has a door with a different color: blue, red, green, yellow, or purple. Inside each room, there is a person with a different nationality: American, British, Canadian, Dutch, and Estonian. Each person has a favorite animal, which is also different for each person: cat, dog, elephant, giraffe, and horse. Additionally, each person has a favorite food, which is different for each person: pizza, sushi, spaghetti, tacos, and waffles. Using the following clues, can you figure out who lives in each room, what their nationality is, what their favorite animal is, and what their favorite food is? The person in the blue room is not Dutch or Estonian. The British person's favorite animal is a horse. The person who likes sushi lives in the red room. The Canadian person likes pizza. The Dutch person lives in the green room. The person who likes tacos lives in the yellow room. The American person's favorite animal is a giraffe. The person who likes waffles lives in the purple room. The person who likes spaghetti is Estonian. The person who likes elephants lives in the room adjacent to the person who likes giraffes.
Answer: The blue room: American, favourite animal is a giraffe, favourite food is sushi. Red room: British, favourite animal is a horse, favourite food is tacos. The green room: Dutch, favourite animal is a cat, favourite food is spaghetti. Yellow room: Canadian, favourite animal is an elephant, favourite food is pizza. Purple room: Estonian, favourite animal is a dog, favourite food is waffles. Explanation: Clue #1 tells us that the person in the blue room cannot be Dutch or Estonian. This leaves us with American, British, Canadian, and Estonian. We can use other clues to narrow it down further. Clue #2 tells us that the British person's favourite animal is a horse, so they cannot be in the blue room. This leaves us with American, Canadian, and Estonian. Clue #3 tells us that the person who likes sushi lives in the red room, so the American person must be in the blue room. Clue #4 tells us that the Canadian person likes pizza, so they must be in the yellow room. Clue #5 tells us that the Dutch person lives in the green room, so they cannot be in the yellow room. This leaves us with British and Estonian. Clue #6 tells us that the person who likes tacos lives in the yellow room, so the British person must be in the red room. Clue #7 tells us that the American person's favourite animal is a giraffe, so they must be in the blue room. Clue #8 tells us that the person who likes waffles lives in the purple room, so the Estonian person must be in the purple room. Clue #9 tells us that the Estonian person likes spaghetti, so the Dutch person must like cats. Clue #10 tells us that the person who likes elephants lives in the room adjacent to the person who likes giraffes, so the Canadian person is just like an elephant. So the final solution is The blue room: American, favourite animal is a giraffe, favourite food is sushi. Red room: British, favourite animal is a horse, favourite food is tacos. The green room: Dutch, favourite animal is a cat, favourite food is spaghetti. Yellow room: Canadian, favourite animal is an elephant, favourite food is pizza. Purple room: Estonian, favourite animal is a dog, favourite food is waffles