Let the time taken for B to finish that work in x days.
∴ time taken for A to finish the same work in (x−6) days
One day B can finish the work is 1x
One day A can finish the work is 1x−6
Given A and B are join together to finish that work in 4 days
i.e. 1x+1x−6=14
⇒x−6+xx(x−6)=14
⇒2x−6x2−6x=14
⇒x2−6x=8x−24
⇒x2−14x+24=0
⇒(x−12)(x−2)=0
⇒x=2,12
Therefore, x=12(x=2 is not possible since 2−6<0)
The number of days B finish that work in 12 days.