When (R)-2-bromopentane reacts with sodium methoxide, what is the major product?

I know that with a SN2 reaction mechanism this becomes (S)-2-methoxypentane, but with elimination this is trans-2-pentene. I know that elimination happens quickly when you apply heat. In this case we have a secondary alkyl halide so its possible to use SN2 or E2 due to methoxide being a strong nucleophile. 


