I know you want a total of 40 but I do not understand the logic behind your calculation...
A1 is 10 and B1 is 10
why should your total become 40?
do you want to keep incrementing the total by the sum of A1 and B1
ie C1= 20, D1 = 40, E1 = 60 etc
OR do you want different values in those cells?
OR do you want C1 to keep increasing by 20?