I am trying to install a light fixture where there was track lighting. While I was taking the track lighting down the contection came apart and I am not sure how to hook it back up.
The directions with the new fixture simply say connect black to black, white to white, and then the ground. The junction box has three black wires and three white wires coming into the box.
How do I know which ones to hook up?