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