Solution:
- First reaction is SN1 reaction because, , is a polar protic solvent and a weak nucleophile. Moreover, in SN1 reaction, rearrangement takes place to form a more stable carbocation.
- Second reaction is SN2 reaction because, is a strong nucleophile and the reaction proceeds with the formation of transition state.