Complex sentence: Red and green needles are used for left and right (A and B in BBC parlance), and white and yellow needles for sum and difference (M and S).
Split into simpler sentences: Red and green needles are used for left and right. White and yellow needles for sum and difference (M and S).