A takes 6 days less than B to finish a piece of work. If both A and B together can finish the work in 4 days, find the time taken by B to finish the work.