a = 45
d = 2
Sn = 1365
(n/2) * [ 2a + (n-1)d] = 1365
n [ 2a + (n-1)d] = 2730
n [ 2(45) + 2(n-1)] = 2730
n [ 90 + 2n- 2)] = 2730
n [ 88 + 2n] = 2730
88n + 2n^2 = 2730
2n^2 + 88n - 2730 = 0
n^2 + 44n - 1365 = 0
EDIT: if you use a bit of trial and error you can factorise this to
(n+65)(n-21) = 0
n = -65, 21
ignore the negative answer since you cant have a negative number of terms.
n = 21, .'. there are 21 terms in the series.
alternatively solve for n using the quadratic formula, ignore negative answer.