What is the value of x in the figure below?

Let's see
[tex]\\ \rm\dashrightarrow \dfrac{9}{x}=\dfrac{24}{12}[/tex]
[tex]\\ \rm\dashrightarrow \dfrac{9}{x}=2[/tex]
[tex]\\ \rm\dashrightarrow x=\dfrac{9}{2}[/tex]
[tex]\\ \rm\dashrightarrow x=4.5[/tex]