Correct option is D
Let the age of the class teacher = x years.
Also, let sum of ages of students = y years.
Total students in the class = 15.
The average age of students and teacher = 15 years.
(x + y) / 16 = 15
x + y = 240 ....(1)
The average age of the teacher and the students is 2 years more than that of students. Thus,
(y / 15) + 2 = 15
y =13 × 15 = 195
Put this value in equation (1),
x + y = 240
x + 195 = 240 = 45 years