Loop two different category WP_Query

I want to loop two different categories to create a layout of two columns in my custom theme. I’m using this code and bootstrap 4 as front-end framework but I’m unable to use all the 12cols available for bootstrap. During the loop, the elements will stack only one time correctly, can I fix this by nesting the loops?

what I expect is that the two loops will create a column like in the example above:

UPDATE: This is the layout I expect. I’ve nested the two loop to get the categories I need, I’ve just noticed that the content of the nested loop will be repeated in some point. Any fix?

enter image description here