A, B, C, D, P, Q, R, S seated straight line facing north.All have different ages 14,16,17,19,21,23,26,31,(not same order). B sit extreme on the end of the line. Three people sit b/w B and 16 yr old. 23 yr old sits second left of Q. Q sits right of 16 yr old but not immediate. Two persons sit b/w 23 yr old and D. Three persons sit b/w 26 yr and C. C sits right of 26 yr. Neither B nor D are 26 yr old. The difference of ages of neighbours of D is 5. Oldest is not neighbor of D. D is not oldest. P sits right of 31 yr old. More than1I sit b/w 31 and 19 yr old. A sits second right of R.
Ram, Manoj, Shiva, Aman, Rajeev, Vijay, Ravi and Rakesh are eight employees of an enterprise and they will attend a seminar in the four months (May, June, August& September). The seminar held in each month on 8th and 20th date. Only two seminars held in a month. None of the person can attend the seminar after Shiva. Aman does not attend the seminar in the month of 31 days. Rajeev and Ravi attends seminar after Aman on date 20th of different months, while Ram& Manoj attend the seminar before Aman and Manoj attends after Ram in the same month. Rakesh does not attend the seminar in the month in which either Rajeev attends or Shiva attends.