-- Homework 22, problem 2 -- solution.

local scores = {12, 7, 24, 9, 30}

local total = 0
for _, value in ipairs(scores) do
    total = total + value
end

print("Total: " .. total)
