Step 1: Total age of 30 students
Average age of 30 students = 18 years
Total age of 30 students=30×18=540 years
Step 2: Average when teacher is included
Number of people = 30 students + 1 teacher = 31
New average = 18 + 1 = 19 years
Total age including teacher=31×19=589 years
Step 3: Teacher’s age
Teacher’s age=Total with teacher−Total of students=589−540=49
Teacher’s age = 49 years