Since [tex]a_4 = 34[/tex] and [tex]a_1 = 22[/tex], let add [tex]d[/tex] six times [tex]34[/tex] to get to [tex]22[/tex].
Solving for d,
To find [tex]a_1[/tex], subtract d from [tex]a_4[/tex] three times since [tex]d[/tex] should be subtracted [tex](n - 1)[/tex] times to [tex]a_n[/tex] in order to find [tex]a_1[/tex].
To find the [tex]n^{th}[/tex] term, use the formula of general rule
Solving.
[tex]\begin{gathered} a_n = 40 + (n - 1)(-2) \\ a_n = 40 - 2n + 2 \\ a_n = - 2n + 42 \end{gathered}[/tex]
Thus,
[tex]\begin{gathered}\boxed{\begin{array}{l}a_1 = 40 \\ d = - 2 \\ a_n = - 2n + 42 \end{array}}\end{gathered}[/tex]