search for a walkthrough for details, but if you dont wanna use one, get a piece of paper, and for every number you find, write down the number and what color it was.
Then when you get to the door just put them in order.
Edit: It's been a little bit since ive played so dont take my word blindly.