The nth term of AP Example 2

Example 2

The 3rd term and the 7th term of an arithmetic progression are 20 and 12 respectively.
(a) Calculate the 20th term.
(b) Find the term whose value is -34.