From the similarity relationships, we can write
[tex]\frac{x+2}{3}=\frac{24}{6+3}[/tex]By moving the denominator 3 to the right hand side, we get
[tex]x+2=3\times\frac{24}{9}[/tex]which gives
[tex]\begin{gathered} x+2=\frac{24}{3} \\ x+2=8 \end{gathered}[/tex]then, by moving +2 to the right hand side. we have
[tex]\begin{gathered} x=8-2 \\ x=6 \end{gathered}[/tex]then, the answer is x=6