A bag contains 12 balls of two different colours, out of which x are white. One ball is drawn at random. If 6 more white balls are put in the bag, the probability of drawing a white ball now will be double to that of the previous probability of drawing a white ball. Then, the value of x is ___________.