We need to keep track of how much the last transaction was. Modify the add method to keep track of the amount of the last transaction. This should be tracked in a new property, lastTransactionAmount.
Add a method called voidLastTransaction that subtracts the last amount transacted from total.
Then use the new method to void the last item we scanned. Finally, scan only 3 of the same item instead.