Question: is x red or black wire?
Answer: X & Y are interchangeable, red and black wires are hot (live) wires, one wire on the X, and the other on the Y. The neutral (white) and the bare ground wire MUST be on there designated connection.