Replacing the ceiling fan/light with a ceiling light. The ceiling box has two sets of wires. One set has a yellow wire, white wire and black wire. The second set has a green wire, white wire and black wire. The ceiling fixture I am trying to attach has only three wires. Which wires do I attach? When someone tried in the past they could not get the light to to turn off and on.