As per question, A do twice the work as done by B.
So A:B = 2:1
Also (A+B) one day work = 1/18
To get days in which B will finish the work, lets calculate work done by B in 1 day =

[Please note we multiplied by 1/3 as per B share and total of ratio is 1/3]
So B will finish the work in 54 days