20 of 50 marbles are white so there are 50-20 = 30 red and blue marbles
The number of red marbles and blue marbles is the same, so there are 30/2 = <<30/2=15>>15 of each color
The difference between the number of white marbles and blue marbles is 20-15 = <<20-15=5>>5
Double the difference is 5*2 = <<5*2=10>>10 marbles
10 marbles are removed to leave 50-10 = <<50-10=40>>40 marbles
#### 40