First array is

Second array is

Array after combination