Eight persons- Brij, Dewy, Eden, Gazi, Harley, Ivy, Karl and Van live in an eight-storeyed building, but not necessarily in the same order.
The bottommost floor is numbered as 1 while, the topmost floor is numbered as 8.
Either Ivy or Eden lives on the second floor.
| Case 1 | Case 2 |
Floors | Persons | Persons |
8 | | |
7 | | |
6 | | |
5 | | |
4 | | |
3 | | |
2 | Eden | Ivy |
1 | | |
Three persons live between Eden and Gazi.
One person lives between Karl and Ivy.
| Case 1 | Case 2 |
Floors | Persons | Persons |
8 | | |
7 | | |
6 | Gazi | |
5 | | |
4 | | Karl |
3 | | |
2 | Eden | Ivy |
1 | | |
Harley and Brij live on an even-numbered floor.
| Case 1 | Case 1a | Case 2 | Case 2a |
Floors | Persons | Persons | Persons | Persons |
8 | Harley | Brij | Harley | Brij |
7 | | | | |
6 | Gazi | Gazi | Brij | Harley |
5 | | | | |
4 | Brij | Harley | Karl | Karl |
3 | | | | |
2 | Eden | Eden | Ivy | Ivy |
1 | | | | |
One person lives between Brij and Eden. Thus, case 1a, case 2 and case 2a are invalid.
Van lives above Karl and below Dewy. Ivy lives below Karl.
Therefore, the final arrangement is:
Floors | Persons |
8 | Harley |
7 | Dewy |
6 | Gazi |
5 | Van |
4 | Brij |
3 | Karl |
2 | Eden |
1 | Ivy |
Only Ivy lives below Eden.