Here A or B is
CH=CH
KOH
CH2 =CH2
KNO3
This is an example of kolbe's electrolysis method.
By Kolbe's Electrolysis Method:
Sodium or potassium salt of maleic or fumaric acid on electrolysis gives acetylene and CO2 at anode whereas hydrogen at cathode.