Six Persons- A, B, C, D, E and F are living in a six-storeyed building. The bottommost floor is 1 above that 2 and so on. Only one person lives on each floor. Each of them belongs to different cities viz., Rome, Paris, Berlin, Copenhagen, Cairo and Budapest. Each of them likes different fruits viz., Watermelon, Mango, Strawberry, Apple, Guava and Peach. All the information is not necessarily in the same order.
Two floors are between D and E.
E lives immediately above the one who belongs to Rome.
The one who likes Peach lives below the one who belongs to Rome.
| Case 1 | Case 2 | Case 3 | Case 4 |
Floor | Person | City | Fruit | Person | City | Fruit | Person | City | Fruit | Person | City | Fruit |
6 | D | | | E | | | | | | | | |
5 | | | | | Rome | | E | | | | | |
4 | | | | | | | | Rome | | E | | |
3 | E | | | D | | | | | | | Rome | |
2 | | Rome | | | | | D | | | | | |
1 | | | | | | | | | | D | | |
Only one person lives between A and the one who likes Peach.
A belongs to Paris.
The one who likes Peach lives below the one who belongs to Rome.
A does not live on an even-numbered floor.
Thus, Case 1 and Case 4 get cancelled.
| Case 2 | Case 3 | Case 3a |
Floor | Person | City | Fruit | Person | City | Fruit | Person | City | Fruit |
6 | E | | | | | | | | |
5 | | Rome | | E | | | E | | |
4 | | | | | Rome | | | Rome | |
3 | D | | Peach | A | Paris | | | | Peach |
2 | | | | D | | | D | | |
1 | A | Paris | | | | Peach | A | Paris | |
Odd number of persons living below F, who likes Watermelon.
Three persons live between the one who likes Watermelon and the one who belongs to Berlin.
E belongs to neither Berlin nor Cairo.
Thus, Case 2 gets cancelled.
| Case 3 | Case 3a |
Floor | Person | City | Fruit | Person | City | Fruit |
6 | F | | Watermelon | F | | Watermelon |
5 | E | | | E | | |
4 | | Rome | | | Rome | |
3 | A | Paris | | | | Peach |
2 | D | Berlin | | D | Berlin | |
1 | | | Peach | A | Paris | |
Only one person lives between C and the one who belongs to Cairo.
E belongs to neither Paris nor Cairo.
| Case 3 | Case 3a |
Floor | Person | City | Fruit | Person | City | Fruit |
6 | F | Cairo | Watermelon | F | Cairo | Watermelon |
5 | E | | | E | | |
4 | C | Rome | | C | Rome | |
3 | A | Paris | | | | Peach |
2 | D | Berlin | | D | Berlin | |
1 | | | Peach | A | Paris | |
The one who belongs to Budapest likes Apple.
B lives above the one who likes Mango.
Thus, case 3 gets cancelled.
| Case 3a |
Floor | Person | City | Fruit |
6 | F | Cairo | Watermelon |
5 | E | Budapest | Apple |
4 | C | Rome | |
3 | B | | Peach |
2 | D | Berlin | |
1 | A | Paris | |
D likes neither Guava nor Mango.
B lives above the one who likes Mango.
Thus, A likes Mango and D likes Strawberry.
| Case 3a |
Floor | Person | City | Fruit |
6 | F | Cairo | Watermelon |
5 | E | Budapest | Apple |
4 | C | Rome | |
3 | B | | Peach |
2 | D | Berlin | Strawberry |
1 | A | Paris | Mango |
Now, C likes Guava and B belongs to Copenhagen.
Floor | Person | City | Fruit |
6 | F | Cairo | Watermelon |
5 | E | Budapest | Apple |
4 | C | Rome | Guava |
3 | B | Copenhagen | Peach |
2 | D | Berlin | Strawberry |
1 | A | Paris | Mango |
This is the final arrangement.
A, who likes Mango, lives immediately below D, who belongs to Berlin.