I could do both... but why would I want both? Assuming I get the soil level where the pool will go, what advantage will sand under the foam provide? It's easy enough for me to go get a few tractor buckets worth to do that, just curious what advantage I will gain?

What sort of foam should I use? Let's say I walk into Home Depot, what should I ask for? Thickness, type?