Provide complete mechanisms for the following reactions. Then explain why different products are observed.