I need a good explanation to what X is not just the answer. I really want to know this info for my upcoming exam.

Assuming line AB is parallel to line CD, then we have two similar triangles as shown below
This means that triangle ABE is similar to triangle CDE. If two triangles are similar, the ratios of their corresponding sides are equal. Thus,
12/20 = 9/x
By crossmultiplying,
12x = 180