Five persons with names A, B, C, D and E live separately in anyone of the following a palace, a hut, a fort, a house or a hotel. Each one likes two different colours from among the following blue, black, red, yellow and green. C likes red and blue. D likes black. The person living in a palace does not like black or blue. A likes blue and red. B likes yellow. E lives in a hotel. B lives in a-
From the given information we get the following table :
NameCDABEColour~ likedRed, BlueBlackBlue, RedYellow−Stays~in−−−PalaceHotel
Since the person living in a place does not like black or blue, that person cannot be C, D or A. So the person who lives in a palace will be either B or E. But E lives in a hotel. Hence M must live in a palace.