How to put 2 variables together

Hello developers!

I’m trying to put 2 variables together to make 1 variable.

Here is my script:

local apps = {503,504,505}

local appsAmount = 507

local app_503 = {1,2,3,4,5,6,7,8,9,10,11,12}

local app_504 = {13,14,15,16,17,18,19,20,21,22,23,24}

local app_505 = {25,26,27,28,29,30,31,32,33,34,35,36}

for i = 1,#apps do

print(app_..apps[i]) --trying to put app_ and apps[1] together to make  app_503 then print the table.

end 

Thanks in advance!

You can simply make table for it

local app = {
   app_503 = {1,2,3,4,5,6,7,8,9,10,11,12},
   app_504 = {13,14,15,16,17,18,19,20,21,22,23,24},
   app_505 = {25,26,27,28,29,30,31,32,33,34,35,36}
}

print(app["app_505"])