The op wants to cut the tanks apart and use the glass to merge them and take the 2 20g into one solid 40g. Or at least tjats how it sounds. Yes you can do it, much easier to buy a 40g tank though
Sent from my SAMSUNG-SGH-I337 using MonsterAquariaNetwork App