In the nine-term sequence A,B,C,D,E,F,G,H,I, the value of C is 8 and the sum of any three consecutive terms is 45. What is A+B?
30
37
40
45
50