Exercise 7 | Carboxylic Acid Derivatives - Part 1

Show the mechanism and product for the following reaction.
Why do we use NaOEt and not NaOH or NaOMe?
 

We use NaOEt instead of NaOH or NaOMe to avoid the formation of carboxylic acids or transesterification.