From the reactions shown, A and B respectively are:
A: Hydrazine, KOH and heat; B: (Ph)3P=CH2
A denotes the conversion of an aldehyde into a hydrocarbon.
Most suitable named reactions to get this done would be Wolff-Kishner reduction
or the Clemmensen reduction.