Do not put open cell foam in your boat period, when you buy it make sure you get close cell foam, closed cell foam when dry ,you can’t squeeze it, it get really hard, open cell is like the stuff in a can you put around window and doors of your house. As far as sealing the old stuff to new stuff, just make sure the old is clean of any crud, and just lap the new against it, it will seal, not a 100% but good enough,if the stuff that’s in there is open cell, get it out and redo the ole thing