That is impossible because there is only one of each color. The possible combinations he could have picked would be:
1 red, 1 blue
1 blue, 1 red
1 red, 1 yellow,
1 yellow, 1 red,
1 blue, 1 yellow,
and 1 yellow, 1 blue.
So, it would be impossible. Hope this helped!