Solve problems 13,16,25 using Lua.