Ответ:

По определению тангенса \(\operatorname{tg}B=\frac{AC}{BC}\), поэтому:

\(AC=BC\cdot\operatorname{tg}B=18\cdot\frac{7}{6}=21\).

Ответ: 21.