1Derive instead of storingeasy · 10 minCompute the total from the items rather than keeping a second state.Acceptance criteria1.#total should show 3.TaskHints 0/1Solution