A can finish the work in 16 days. In one day he can finish (10016)% of the work.
In 4 days, working alone he will finish [(10016)×4]=25% of the work.
Now B joins him.
Amount of work left = 100 – 25 = 75%
B can do (1008)% of the work.
A and B together can do (1008)%+(10016)%=(30016)% of the work.
Work left =75% . Hence time taken =[(75×16)300]=4 days.
So, total time taken = 4 + 4 = 8 days.
2nd method:- In 4 days A will finish 25% of work. Remaining work is 75%, Efficiency of B is double than A i.e 50% work will done by B and 25% will done by A. Thus it will take 4 days. Total 8 days.