A does 1/6 of work in one day
B does 1/12 of same work in one day
Both of them does (1/6)+(1/12)=1/4 of work in one day
Let x be the time taken by both of them to do the whole work
So they will take
(1*x)/4=1
From here
X=4 days
Both of them will take 4 days to complete the work