Let f(x)=2x^2+40x+25. Given that f(x) leaves the same remainder when divided by x−a as when divided by x+2a for a positive integer a, what is the value of a?