In part (e) anhydride when treated with ammonia it form amide.
If 1 mol of NH3 is treated it will form one amide and one carboxylic acid but, here 2 mol of NH3 is present so two amide will form.
Also carboxylate will not deprotonate amide but on heating dehydration will take place and it form 2 amide.

The same reaction you can see in Gabriel phthalimide reaction.
DON'T FORGET TO UPVOTE MY ANSWER.
hi! For part e, I was wondering why the carboxylate wouldn't deprotonate the ammonium and thus...