How to remove a container disk and reclaim space with main partition? (Similar to another question)
To convert a container to free space requires two commands. For example, disk1s5 is a APFS container. To convert to free space, you would need to enter the following commands.

sudo diskutil apfs deleteContainer disk1s5
sudo diskutil eraseVolume free none disk1s5


Free space can be added to a container, if the free space reside immediately after the container. In your case, if you converted disk1s5, disk1s4 and disk1s3 to free space, then you probably would be able add this free space to disk1s2, by entering the command given below.

sudo diskutil apfs resizeContainer disk1s2 0


&nbsp;