PLZ HELP ASAP SOLVE SIMMILAR TRIANGLES (BASIC)

By similarity of triangles we have the following relationship:
(x) / (6) = (18) / (9)
Simplifying we have:
(x) / (6) = 2
Clearing the value of x we have:
x = 6 * 2
X = 12
Answer:
The value of x for this case is equal to:
X = 12