Eight persons A, B, C, D, E, F, G and H were born on either the 13th or the 27th of January, March, May and June in the same year, but not necessarily in the same order.
Atleast three persons were born between A and G, who was born on the composite-numbered date.
A is neither the youngest nor the oldest person.
| | Case 1 | Case 2 | Case 3 | Case 4 | Case 5 | Case 6 |
Date | Month | Persons | Persons | Persons | Persons | Persons | Persons |
13th | January | | | | | | |
27th | | G | G | A | | | A |
13th | March | | | | | A | |
27th | | | | | A | | |
13th | May | | | | | | |
27th | | A | | G | | | |
13th | June | | A | | | | |
27th | | | | | G | G | G |
A was not born in June. So, case 2 is invalid.
C is younger than G. Thus, case 4, case 5 and case 6 are invalid.
| | Case 1 | Case 3 |
Date | Month | Persons | Persons |
13th | January | | |
27th | | G | A |
13th | March | | |
27th | | | |
13th | May | | |
27th | | A | G |
13th | June | | |
27th | | | |
Not more than two persons are younger than C.
B was born in June.
B and F were born on the prime-numbered date.
| | Case 1 | Case 3 |
Date | Month | Persons | Persons |
13th | January | | |
27th | | G | A |
13th | March | | |
27th | | | |
13th | May | | |
27th | | A | G |
13th | June | B | B |
27th | | C | C |
Three persons were born between D and H.
The number of persons born after H is equal to the number of persons born before E.
| | Case 1 | Case 3 |
Date | Month | Persons | Persons |
13th | January | D | D |
27th | | G | A |
13th | March | | |
27th | | E | E |
13th | May | H | H |
27th | | A | G |
13th | June | B | B |
27th | | C | C |
Either two or three persons were born between F and G. Thus, case 1 is invalid.
Therefore, the final arrangement is:
Date | Month | Persons |
13th | January | D |
27th | | A |
13th | March | F |
27th | | E |
13th | May | H |
27th | | G |
13th | June | B |
27th | | C |
G was born immediately before B but in different months.