I am taking a physical chemistry course and some of our practice problems include summations of summations, which I've never dealt with before. I have the answer, but I don't understand where it came from - why aren't there any terms with $ i $ or $ j $ left? I thought you took the inner summation and then did the outer summation, but I can't seem to get the correct answer since it's all in terms of the two variables.
The problem: How many terms are there in the following summation? Write out the terms. $$ S = \sum _ { i = 1 } ^ 3 \sum _ { j = 1 } ^ 2 x _ i y _ j $$
The solution: Six terms: $$ x _ 1 y _ 1 + x _ 1 y _ 2 + x _ 2 y _ 1 + x _ 2 y _ 2 + x _ 3 y _ 1 + x _ 3 y _ 2 $$