Eight people, named A, B, C, D, E, F, G, and H; who work as a dancer, singer, lawyer, painter, doctor, teacher, architect, and professor; are 25, 40, 45, 29, 66, 24, 21, and 34 years old; although these labels are not necessarily in the given order; are seated in a circle facing the centre. Based on these clues, determine how the eight people are seated.
- The doctor sits third to right of D.
- The sum of ages of the neighbours of the doctor is a perfect square.
- The age of G is equal to, twice the difference in the ages between the one who is to the immediate right of doctor and D.
- G sits second to the right of the one who is oldest.
- G is neither architect nor doctor.
- Only two persons sit between teacher and architect.
- The one who is the oldest is either painter or lawyer.
- The difference between ages of neighbours of G is equal to the age of F who is a dancer.
- H sits opposite to the one who is a teacher and does not sit adjacent to F.
- The singer's age is an odd number and sits two places away from B.
- B is adjacent to neither the lawyer nor E.
- Painter sits adjacent to the one who's age is 29.
- A sits neither adjacent to the youngest nor opposite to C.
Source: a mock test for entrance to an MBA exam I'm preparing for