The fact that the hydrogens in B are in between two functional group should alert you that this could not possilbly be the answer. Functional groups "function" ie they react easily, so those hydrogens will probably leave first.
Also, the carboxilic acid is a very reactive functioal group, and since its an acid, it will lose the hydrogen real easy.