The task is to generate the correct answer for a given math problem.

Ex Input:
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 ?

Ex Output:
54


Ex Input:
Problem: you collect baseball cards . suppose you start out with 15 . maria takes half of one more than the number of baseball cards you have . since you ' re nice , you give peter 1 baseball card . since his father makes baseball cards , paul decides to triple your baseball cards . how many baseball cards do you have at the end ?

Ex Output:
18


Ex Input:
Problem: ram , who is half as efficient as krish , will take 21 days to complete a task if he worked alone . if ram and krish worked together , how long will they take to complete the task ?

Ex Output:

7 days