the average age of 30 students in a class is 15 years . if the age of teacher is also included , the average becomes 16 years , find the age of the teacher .
n0 = 30.0
n1 = 15.0
n2 = 16.0
t0 = n0 * n1
t1 = n2 + t0
t2 = n0 + t1
answer = t2 - t0
print(answer)