For a parabola given by the equation y=ax2+bx+c, it is known that when x=1, y=10, and when x=−1, y=2. What is the value of b?
4
6
8
12