The 2nd and 50th term of an A.P is 49 and 89 respectively. Find the sum of first 51 terms of the given A.P.