A completes the work in 18 days, so A's work rate is \( \frac{1}{18} \) of the work per day. B is 20% more efficient, so B's rate is \( 1.2 \times \frac{1}{18} = \frac{1.2}{18} \). The time taken by B to complete the work is the reciprocal of B's rate:
\[
\text{Time taken by B} = \frac{1}{\frac{1.2}{18}} = \frac{18}{1.2} = 15 \text{ days}.
\]