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 do a piece of work in 10 days and 10 days respectively . they work together for 10 days and b leaves . in how many days the whole work is completed ?
Output:
30 days