Answer
SN2 and E2 occur because methoxide is a strong nucleophile. Since the substrate is a secondary alkyl halide, SN2 is as likely to happen as E2. E2 here produces 2 products, the one with more substituted double bond is major.
Work Step by Step
See image for mechanism.