Re: Best foam????
What kind of boat do you have? If it's fiberglass you may have more than just a rotten deck and bad foam.
As for the kind of foam, a lot of people are usinf the pink or blue rigid polystyrene foam sheets you can buy at Home Depot or Lowes.
I personally would tear out and replace all of the foam, it's probably all waterlogged anyway.