Similar triangles
The image provided with the question shows 3 similar triangles. The lines of length a, m, and 5 are parallel, so the lengths are proportional
The proportionality can be written as:
Operating:
The first two parts of the equalities are the same fraction (when simplified). We can use the last and the first one to find x:
Cross-multiplying:
3(x + 6) = 2*12
Dividing by 3:
x + 6 = 8
Subtracting 6:
x = 2