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: to complete a work a and b takes 8 days , b and c takes 12 days , a , b and c takes 6 days . how much time a and c will take
Output:
8 days