Linking doors in static class

Basically what I am trying to do is to link two doors from different scenes up against each other, so if you go into a door in scene one, you come out a door in scene two. I do not have a lot of knowledge about programming og game developing, but I have been recommended to set up a static class. Could anyone tell me how I do this, and also a easy way to link doors?

If all doors have a common door script, you could give it a static variable which always saves the door you entered, either by name or number or… when loading a new level you could compare all available doors with this current door and put the player there.