A bag contains 10 red, 9 white, 8 yellow and 2 blue marbles. How many marbles must be taken out from the bag so that there will be 4 marbles of the same colour?