Given our following set of values:
We want to calculate the following:
The first one, is just asking the sum of all the values.
The second is asking for the sum of the squares of all the values of our set.
And finally, the last one is asking for the square of the first sum. Since we already know th result we can just calculate the square.
With this, we have our results.