What is the unknown dimension of 18=1/2(6)x?

If you mean

18 = (1/2)*6 x, then
18 = 3x and x = 6