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: a and b can together finish a work in 40 days . they worked together for 10 days and then b left . after another 21 days , a finished the remaining work . in how many days a alone can finish the job ?
Output:
2