The printer has blue, green, and red stacks of flyers. Add the sheet counts across all three records instead of entering the total by hand.
stacks records, add their .sheets, and print Sheets: 9.The last valid index is 2. A loop that reaches index 3 reads past the array.
Read stacks[i].sheets while i < 3.