The colours of the cards tell you the order of the numbers in the code.

The blue card is first therefore the first number of the combination is 2.

This is followed by the green card – 3

This is followed by the red card – 9

Finally the yellow card – 4

The combination required is – 2394