I do not understand the question are you thinking to merge them using software to make a new partition or what. if that is the case I actually do not have much answers
you can simply copy into other HDD and reformat the partitions one by one adding the 2 20 and 20 to make them one 40 and then go for making the 34 similarly. And hope this is what you already know.