A sample of carboxylic acid is added to 50.0 mL of 2.27 M NaOH and the excess NaOH required 28.7 mL of 1.86 M HCl for neutralization. How many moles of NaOH reacted with the carboxylic acid?

moles = M x L.