If three points lie on the same straight lines then the slope between the second and the first points is the same as the slope between the third and the second. Write this condition. It will give you an equation for "a". Then solve it and find the value of "a". It is linear equation. It is easy to solve it.