Nine persons- A, B, C, D, E, F, G, H, I and J live in a nine-storeyed floors. The bottommost floor is numbered as 1, the floor above it as 2, and so on. They were born in non-consecutive years starting from 1960 to 2010, but not necessarily in the same order. No two persons were born in the same year. Their present age is considered as of the year 2022.
Three floors are between D and G, who was born in 1974.
Thus, age of G = 2022 - 1974 = 48
At most two floors are above D.
| Case 1 | Case 2 | Case 3 |
Floor | Person | Year | Age(in years) | Person | Year | Age(in years) | Person | Year | Age(in years) |
9 | D | | | | | | | | |
8 | | | | D | | | | | |
7 | | | | | | | D | | |
6 | | | | | | | | | |
5 | G | 1974 | 48 | | | | | | |
4 | | | | G | 1974 | 48 | | | |
3 | | | | | | | G | 1974 | 48 |
2 | | | | | | | | | |
1 | | | | | | | | | |
Difference between the ages of G and I is 15 years.
I lives on even numbered floor below G.
1974 + 15 = 1989
Age of I = 2022 - 1989 = 33
The one who lives on 4th floor is 10 years younger than I.
33 - 10 = 23
2022 - 23 = 1999
Thus, Case 2 gets cancelled.
| Case 1 | Case 3 |
Floor | Person | Year | Age(in years) | Person | Year | Age(in years) |
9 | D | | | | | |
8 | | | | | | |
7 | | | | D | | |
6 | | | | | | |
5 | G | 1974 | 48 | | | |
4 | | 1999 | 23 | | 1999 | 23 |
3 | | | | G | 1974 | 48 |
2 | I | 1989 | 33 | I | 1989 | 33 |
1 | | | | | | |
F lives immediately below B, whose age is a square number below 30.
Possible age = 16, 25
2022 - 16 = 2006 or
2022 - 25 = 1997
A is 5 years younger than B.
Then, age of A will be
11(2011), which is not possible
Thus, age of B will be 25 and age of A will be 20.
Two floors are between I and F.
Thus, Case 1 gets cancelled.
| Case 3 |
Floor | Person | Year | Age(in years) |
9 | | | |
8 | | | |
7 | D | | |
6 | B | 1997 | 25 |
5 | F | | |
4 | | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | | |
A does not lives on an odd numbered floor.
Age of A will be 20.
Floor | Person | Year | Age(in years) |
9 | | | |
8 | A | 2002 | 20 |
7 | D | | |
6 | B | 1997 | 25 |
5 | F | | |
4 | | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | | |
Only one floor is between H and the one who was born in 1965.
Age of D = 2022 - 1965 = 57
Floor | Person | Year | Age(in years) |
9 | H | | |
8 | A | 2002 | 20 |
7 | D | 1965 | 57 |
6 | B | 1997 | 25 |
5 | F | | |
4 | | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | | |
H is 4 years elder than D.
Age of H = 57 + 4 = 61(2022 - 61 = 1961)
Floor | Person | Year | Age(in years) |
9 | H | 1961 | 61 |
8 | A | 2002 | 20 |
7 | D | 1965 | 57 |
6 | B | 1997 | 25 |
5 | F | | |
4 | | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | | |
The age of the persons who lives on the bottommost floor is 14 years.
Year = 2022 - 14 = 2008
Floor | Person | Year | Age(in years) |
9 | H | 1961 | 61 |
8 | A | 2002 | 20 |
7 | D | 1965 | 57 |
6 | B | 1997 | 25 |
5 | F | | |
4 | | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | 2008 | 14 |
The one who was born in 1980 lives immediately above E.
Floor | Person | Year | Age(in years) |
9 | H | 1961 | 61 |
8 | A | 2002 | 20 |
7 | D | 1965 | 57 |
6 | B | 1997 | 25 |
5 | F | 1980 | 42 |
4 | E | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | | 2008 | 14 |
Now, only C is remaining.
Floor | Person | Year | Age(in years) |
9 | H | 1961 | 61 |
8 | A | 2002 | 20 |
7 | D | 1965 | 57 |
6 | B | 1997 | 25 |
5 | F | 1980 | 42 |
4 | E | 1999 | 23 |
3 | G | 1974 | 48 |
2 | I | 1989 | 33 |
1 | C | 2008 | 14 |
This is the final arrangement.
Seven floors are between eldest and youngest person. The age of eldest person is 61 years and the age of youngest person is 14 years.