Eight persons: J, L, M, R, S, T, V, and X
Flat: Flat A and B (Flat A is to the left of Flat B on each floor)( The floors are numbered 1 to 4, the bottommost floor being numbered 1)
Theme of Flat: Blue, Brown, Green, Orange, Pink, Purple, Red, and Yellow
i) V lives in a flat with a Pink theme on an even-numbered floor.
ii) T lives in the flat to the immediate right of the flat with a Pink theme.
Following are the possibilities we get,
|
Case 1
|
Case 2
|
Floor
No.
|
Flat A
|
Flat B
|
Flat A
|
Flat B
|
|
Person
|
Theme
|
Person
|
Theme
|
Person
|
Theme
|
Person
|
Theme
|
4
|
V
|
Pink
|
T
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
V
|
Pink
|
T
|
|
1
|
|
|
|
|
|
|
|
|
iii) Two floors are there between the flats with Orange and Red theme.
iv) J lives on floor 1 in a flat with Purple theme.
v) S lives in the flat with Green theme immediately above the flat with Red theme.
This statement is violated in case 2, so it is eliminated.
|
Case 1
|
Floor No.
|
Flat A
|
Flat B
|
|
Person
|
Theme
|
Person
|
Theme
|
4
|
V
|
Pink
|
T
|
Orange
|
3
|
|
|
|
|
2
|
|
|
S
|
Green
|
1
|
J
|
Purple
|
|
Red
|
vi) The flat with Blue theme is immediately above R.
The only possibility is, R should live on the 2nd floor.
|
Case 1
|
Floor No.
|
Flat A
|
Flat B
|
|
Person
|
Theme
|
Person
|
Theme
|
4
|
V
|
Pink
|
T
|
Orange
|
3
|
|
Blue
|
|
|
2
|
R
|
|
S
|
Green
|
1
|
J
|
Purple
|
|
Red
|
vii) The flat with Brown theme is on an even-numbered floor.
viii) Neither L nor X lives in the flat with Yellow theme.
|
Case 1
|
Floor No.
|
Flat A
|
Flat B
|
|
Person
|
Theme
|
Person
|
Theme
|
4
|
V
|
Pink
|
T
|
Orange
|
3
|
|
Blue
|
|
Yellow
|
2
|
R
|
Brown
|
S
|
Green
|
1
|
J
|
Purple
|
|
Red
|
ix) Neither L nor M lives on Floor number 1.
x) T and X live in the same flat.
So, the final arrangement is:
Floor No.
|
Flat A
|
Flat B
|
|
Person
|
Theme
|
Person
|
Theme
|
4
|
V
|
Pink
|
T
|
Orange
|
3
|
L
|
Blue
|
M
|
Yellow
|
2
|
R
|
Brown
|
S
|
Green
|
1
|
J
|
Purple
|
X
|
Red
|
So, the theme of the flat in which R lives is Brown.