Let the number of blue balls in the bag be x.
Then total number of balls = (5 + x)
∴ Total number of possible outcomes = (5 + x)
∴ P(a blue ball) = x/(5+x)
∴ P(a red ball) = 5/5+x
According to question P (a blue ball) = 2 × P(a red ball)
⇒ x = 10.
Hence, number of blue balls in the bag = 10.