A and B can separately complete a piece of work in 20 days and 30 days respectively. They worked together for some time, then B left the work. If A completed the rest of the work in 10 days, then B worked for how many days?
1
6 days
2
8 days
3
12 days
4
16 days