One approach (there are multiple ways to approach it) is to create a new black file that is large enough to hold both JPGs.
Copy one JPG and paste into the empty file.
Copy the second JPG and paste into the empty file.
You now have two layers in that new file with the two JPGs. Move each to...