A bag contains 12 balls out of which x number of balls are white . If 6 more white balls are put in the bag, the probability of drawing a white ball will be double than that when the probability of drawing a white ball at random. Then the value of x is ________.