Standard colour codes for electrical wiring are used for safety and proper connection. While modern standards in many places use Brown for live, Blue for neutral, and Green/Yellow for earth/ground, older or alternative standards often used Red for live, Black for neutral, and Green for earth/ground. The question uses Red, Green, and Black, indicating reference to such a standard.