This question was asked in Ex 5.3, 18
Sum of first 'n' terms of an AP when (first and last terms are given) 

Pooja Rana's image