Two way switches act like one single pole single throw switch and this arrangement is in series with the AC source and the controlled lamp.
Assuming the controlled lamp is a 100w incandescent, if you substitute a 100w incand. for the two-switch-arrangement, both lamps will be on at 1/4th power. Then, the two wires that go to the substituted lamp are what needs to go to the two way arrangement. The trick is to find which of the two wires are correct, but at least with the bulb there won't be sparks and tripped breakers.
There are many ways to wire this arrangement.