Find the number of terms in an arithmetic sequence with a1=5,an=45,Sn=250a_1=5, a_n=45, S_n=250a1=5,an=45,Sn=250.
888
101010
121212
151515