Triangle ABC is right angle triangle.
So we get,
x + 2x + 90 = 180
3x = 90
x = 30
Which means triangle ABC is
30-60-90 right angle triangle
We get,
sin 30 = opposite side / hypotenuse
1/2 = AB/AC = y/12
Solving above equation we get
y = AB = 6