Determine which wire goes to which switch?
Connect an insulated wire in one of the cables to a hot wire, or, if the cables are already wired to switches, just make sure one switch is on and the other off, then test for voltage at the far end using a non-contact AC voltage detector (Walmart $6).