Two wires called “travelers” connect the first switch to the second one. Then power leaves the second switch to go to the light. No matter which switch you flip, the light responds.
I always connect wires in the same order ... Turning off a switch cuts power to the light or whatever the switch controls, ...