Spoilers!
I don't think there's much logic to it, just try stuff. The walkthrough says: third door > red door > back through white door > red door > red door.
thanks , i managed to find the way