I was wondering what the simplest way to for loop through all the instances of a certain object and add together all of their values for the instance variable "amount"
(Instance Variable) Amount: 2
(Instance Variable) Amount:7
Total Amount: 9
Thanks for any help you can provide!