You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: 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 ?
Output:
54