What this code achieve is it sums up all entries in “Accepted Cherries” and multiplies it by the sum of all entries in “Price paid per kg of Cherries”

But what I am trying to achieve is multiply the “Accepted Cherries” by the “Price paid per kg of Cherries” for each farmer and then sum it up.

For instance the screenshot below should be calculated as

(10 x 50) + (9x400)