5 years ago , paula was 3 times as old as karl . in 6 years , paula will be twice as old as karl . what is the sum of their ages now ?
n0 = 5.0
n1 = 3.0
n2 = 6.0
t0 = n2 * 2.0
t1 = n0 * n1
t2 = n2 - t0
t3 = t1 - n0
t4 = -t2
t5 = t4 + t3
t6 = t5 * 3.0
t7 = t6 - t3
answer = t5 + t7
print(answer)