I am replacing new lights at my parents house. Their main bedroom had a ceiling fan that went out years ago. The fan has been taken down and now only a light will be used to replace it. However, Once I looked at the wiring I got confused. There are 3 - Black wires twisted together; 3 - White wires twisted into a second set and finally a third set of wires which consisted of 2 - black wires and 1 - white wire twisted together.

The light fixture only has 1 - black wire and 1 - white wire. Which of these three sets of wires am I using if that makes any sense. I can send you a picture of what it looks like if that will help.