Provide a detailed mechanism for each of the following reactions: