The formula for the term of an arithmetic sequence is .
Similarly, .
Solving the equation for and substituting into equation yields :
Hence .