Three way switch not working right
We just bought our first home and I am trying to fix a three way switch that is not working properly. The light will only turn on if both switches are in the down position. I tested the wires and determined switch A has the hot common terminal. There is a red and black traveler wire connecting the switches.
Case 1 Switch A is down: Both of the traveler wires in switch 1 are hot. If switch B is up then the red traveler is hot but not the other traveler or the common. If switch B is down then all the wires are hot.
Case 2 Switch A is up: Only the red traveler is hot in switch A. In up or down position none of the wires are hot in switch B.
How do I fix this?