house hold wiring for two way switch
What you are looking for is a 3 way switch (2 ea 3 way switches) check out this post, or search the site there are probably over a hundred with examples Of proper wiring. The basics are if the light is off flip one of the switches the light is now on. Flip one switch the light is off. There are also digital models that can dim, or turn off from both locations one switch is a master or the control the second switch is a slave or remote.