Answer: 8
Step-by-step explanation:
By the angle bisector theorem,
[tex]\frac{12}{18}=\frac{x}{12}\\\\\frac{2}{3}=\frac{x}{12}\\ \\ x=\boxed{8}[/tex]