Determine the value for x in the picture below.
Please help me

Given:
The figure of a right angle triangle.
A line segment intersect the two sides and parallel to third side of the triangle
To find:
The value of x.
Solution:
According to basic proportionality theorem, if a line segment intersect the two sides and parallel to third side of the triangle, then it divides the two sides proportionally.
Using basic proportionality theorem, we get
[tex]\dfrac{8}{20-8}=\dfrac{6}{x}[/tex]
[tex]\dfrac{8}{12}=\dfrac{6}{x}[/tex]
[tex]\dfrac{2}{3}=\dfrac{6}{x}[/tex]
On cross multiplication, we get
[tex]2\times x=6\times 3[/tex]
[tex]2x=18[/tex]
[tex]x=\dfrac{18}{2}[/tex]
[tex]x=9[/tex]
Therefore, the value of x is 9.