Merge two APFS containers
No - there is no merging. The point of APFS is to put all your volumes in one container and not make multiple containers, but you're where you are today.

Looking at the image you should have more than enough space to move what you can off of the middle container (into the first ideally or into the last if needed. Then you can remove the middle empty container, grow the first container, then complete cleanup

Of course, just copying the data from the second two containers to another drive and then removing both, growing the first is the simplest way to return to one container with all your space.

David's comment to show the diskutil list will unlock someone giving you the exact commands needed to accomplish the rough sketch idea I've put in words here.