Explanation
Step -1: Finding the work done by A and B in a day.
Let B takes a total of x days to complete the work alone.
So as know that A takes 6 days less than B we can write that A takes
x - 6 days to complete the work alone.
Work done by B in a day = x1
Work done by A in a day = x−61
Step -2: Finding x .
As we know that A and B together complete the work in 4 days,we can write
x1+x−61=41
Taking LCM and solving we get,
x(x−6)x−6+x=41
x(x−6)2x−6=4