create a function that retrieves amounts from the table in order, and starting from the first recorded amount, the next cumulative amount is added from the previous amount to get the new total for the second recorded amount.
note: use forEach to iteration amount values from amount properties
create a function that retrieves amounts from the table in order, and starting from the first recorded amount, the next cumulative amount is added from the previous amount to get the new total for the second recorded amount.
note: use forEach to iteration amount values from amount properties