It is given that,
The eight people are A, B, C, D, E, F, G, and H.
B lives in an even-numbered flat on an even-numbered floor.
E and B live on the same floor.
E lives on a floor immediately above G's floor but not in the same numbered flat.
We get,
| Case 1 | Case 2 |
| 2 | 1 | 2 | 1 |
4 | B | E | | |
3 | G | | | |
2 | | | B | E |
1 | | | G | |
G lives on a floor immediately above C's floor in the same numbered flat.
Here, case 2 is invalid.
A lives on a floor above F's floor and neither of them lives on C's floor.
We get,
H lives on a floor below D's floor but not in same numbered flat.
The final arrangement is,
A lives in flat 1 of floor 3.