finding the sum among 2 list indices