Compound A on reaction with ethanoic acid gives out gas B which turns limewater milky. Choose the option correctly depicting compounds A and B.