Total number of balls = 12
Total number of black balls = x
P (getting a black ball) = x/12
If 6 more black balls are put in the box, then
Total number of balls = 12 + 6 = 18
Total number of black balls = x + 6
P (getting a black ball now) = (x+6)/18
According to the condition given in the question