Let there be x blue balls in the bag.
So, the total number of balls in the bag = 5 + x
Now, the probability of drawing a blue ball
=x5+x
And , the probability of drawing a red ball
=55+x
But according to question, the probability of drawing a blue ball is double that of a red ball,
⇒ x5+x=2×55+x⇒x5+x=105+x
⇒ x2+5x=50+10x
⇒ x2−5x−50=0
⇒ x=5±√25+(4×5)2
⇒ x=5±152
⇒ x = 10 or -5.
Here, number of blue balls cannot be negative.
⇒ x = 10
Hence, there are 10 blue balls in the bag.