Average of 39 students = 39 years
Total age of students=39×39=1521
When the teacher is included:
Total people = 40
New average = 40 years
Total age (including teacher)=40×40=1600
Teacher’s age:
Teacher’s age=1600−1521=79
Final Answer:
Teacher’s age = 79 years