Since the coefficients of the x2-term have to be equal on both sides of the equation, −8a=24, or a=−3.