Hello I am stuck on a problem and I don't know how to solve it can you help me?

The value of x is 24
Explanation:Given that the triangles are similar, then the following is correct:
[tex]\begin{gathered} \frac{x}{18}=\frac{16}{12} \\ \end{gathered}[/tex]Solving for x from the above equation, we have:
[tex]\begin{gathered} 12x=16\times18 \\ x=\frac{16\times18}{12} \\ \\ =24 \end{gathered}[/tex]