Observe that this is a equilateral triangle, meaning that all sides are the same.
So y = 18 eliminates A and C.
Now we have to decide whether x = 18, or x = 9 sqrt(3).
But this is easy to see, since there's no way that x = y in a right triangle. So, without any calculation, we can say x = 9 sqrt(3) is the correct answer.