the first term of an arithmetic sequence is 5, the last term is 45 and the sum is 275. how many terms are there?