Solve problems 48,97 using Lua.