Solve the equation $x^4-2x^3-21x^2+22x+40=0$ whose roots are in A.P. (arithmetic progression).
I don't understand this solution.
Why are the terms of AP considered as mentioned in the question and not in the form of a, a+d, a+2d... and so on?
I am not able to understand why the terms of the AP are of that specific form and not in the general form of a, a+d, a+2d and a+3d. The aforementioned sequence is also in the form of AP and should also provide the answer but I am not able to get to the answer by the approach I am trying.
Also explain the approach as well.
Also the reasoning and thinking behind the approach used to find the roots if explained will also be helpful or any sources for the same.
Approach
Consider the 4 roots to be {a, a+d, a+2d and a+3d}. By using Vieta's formula:\
$a+(a+d)+(a+2d)+(a+3d)= \frac{-b}{a}$
$4a+6d=2$
$2a+3d=1$
$a= \frac{(1-3d)}{2}$
Similarly,
$a*(a+d)*(a+2d)*(a+3d)= \frac{c}{a}$
$(a^2+ad)*(a^2+3ad+2ad+6d^2)=40$
Then substituting the value of $a$ in the above equation:
$221d^4-90d^3-66d^2+6d-639=0$
There may be some errors but it will result in a quartic equation nonetheless and it goes back again being similar to the original equation. Thus my question is then is there no other way of solving this equation other than considering the terms of the Arithmetic Progression to be of a particular sequence.
I am new to math.stack exchange so if there are any error in the phrasing of the question, I am sorry. Also any help is welcomed kindly. Thanks and regards. Special thanks to everyone who pointed out the mistakes in paraphrasing of my initial question and guiding me.

Generally when considering AP's with 3,4,5 terms respectively, it makes it easier if we write the terms as: (which makes calculating terms of the AP much faster(especially sum and product) )
You can then exploit using Vietta's Relations of Sum and Product of roots to get values of a and r respectively, as outline in the solution provided by them.
Using $a,a+r,a+2r,a+3r$ will make the calculations much more tedious as you will get a linear relation between a and r and a 4th power one which will not easily cancel.