You could just know that carboxylic acid + carbonate = salt + H2O + CO2 and then balance the stochiometric numbers to find the solution
Or eliminate answers:
A ) wrong the stochio balance is off, 7C on the left and 6C on the right
B )wrong MgC3H5O2 should have a + charge
D ) wrong CH3COOH is ethanoic acid not propanoic acid
E ) wrong Mg3C3O2 is not possible unless you change the charge and add hydrogen