The combined age of the 39 students is calculated as:
\[
39 \times 15 = 585 \text{ years}
\]
After adding the teacher, the total number of individuals becomes 40, and the new average age is:
\[
15 + \frac{3}{12} = 15.25 \text{ years}
\]
The total age of all 40 individuals is then:
\[
40 \times 15.25 = 610 \text{ years}
\]
To find the teacher's age:
\[
610 - 585 = 25
\]
Thus, the teacher's age is 25 years.