If $(x+a)$ is a factor of the polynomial $2 x^{2}+2 a x+5 x+10$, find the value of $a$.