The sum of the first five terms of an arithmetic sequence is 40, and the ninth term is 20.
Find the first term and the common difference of the sequence.