This answer is not correct. The SN2 reaction inverts the configuration of the substrate and this answer shows retention of configuration. Remember that this reaction proceeds via a back attack on the carbon with the leaving group. The E2 reaction proceeds more readily when the leaving group is trans to the hydrogen atom that is attacked by the nucleophile. This means that the least substituted alkene must be formed in this case.