In the diagram below, a 2-
The common terminal of the second 3-
The white neutral wires are connected together in each switch box.
Diagrams shown on this page are simplified for clarity. Electrical outlet boxes can have numerous NM cables going in and out. See Actual Switch Box Wiring Diagram.
Ground connection diagram is shown separately.
All traveler wires are interchangeable between pins of each switch