Step 1: Understanding the Question:
The average age of 100 teachers in the year 2000 was 50 years. Some teachers retired in 2002 and new teachers joined in 2005. We need to find the average age of all teachers in 2008.
Step 2: Key Formula or Approach:
Use:
\[
\text{Total Age} = \text{Average Age} \times \text{Number of Persons}
\]
Track the total ages after retirement, new appointments, and yearly increase in age.
Step 3: Detailed Explanation:
Initial situation in 2000:
\[
\text{Total age} = 100 \times 50 = 5000
\]
In 2002:
After 2 years, every teacher becomes 2 years older:
\[
5000 + (100 \times 2)=5200
\]
Now, 20 teachers retire whose average age is 60 years.
\[
\text{Age removed} = 20 \times 60 = 1200
\]
Remaining total age:
\[
5200-1200=4000
\]
Remaining teachers:
\[
100-20=80
\]
From 2002 to 2005:
3 more years pass, so:
\[
4000 + (80 \times 3)=4240
\]
In 2005:
40 new teachers join with average age 38 years.
\[
\text{Added age} = 40 \times 38 = 1520
\]
New total age:
\[
4240+1520=5760
\]
Total teachers:
\[
80+40=120
\]
From 2005 to 2008:
3 more years pass:
\[
5760 + (120 \times 3)=6120
\]
Average age in 2008:
\[
\frac{6120}{120}=51
\]
Step 4: Final Answer:
The average age of all teachers in 2008 was:
\[
\boxed{51 \text{ years}}
\]
Hence, the correct option is:
\[
\boxed{\text{(C) 51 years}}
\]