The two triangles are similar. What is the value of x?

[tex] \\
\text{Two Triangles are said to be similar if the ratios of their corresponding sides are equal}\\
\\
\text{In the given diagram, the larger triangle has sides 6+8=}14 \ and \ 3x\\
\\
\text{and the smaller triangle has sides }(2x-2) \ and \ 8\\
\\
\text{The ratios can be written as follows}\\
\\
\frac{3x}{2x-2}= \frac{14}{8}\\
\\
\text{Simplify, we get}\\
\\
8*3x=14(2x-2)\\
\\
24x=28x-28\\
\\
\text{Take like terms together and simplify we get}\\
\\
28x-24x=28\\
\\
4x=28\\
\\
\\
x=7\\ [/tex]