i am trying to replace a light fixture in my home. the light has two switches one at each end of the hallway. when i took down the old light it was wire as so two whites connected to each other two blacks connected to each other the two grounds connected to each other and the two reds were connected to the two black wires on the fixture. how do i reconnect the new light with a white a black and a ground?

Thank you!