Next, I cut my foam to fit the size of the top of my toy box. I recommend fairly dense and thick foam if it is going to be for a seat, as it has to take your weight. Mine was 3 inches thick.
You don’t strictly have to attach your foam to your box lid, but I find it helps in the stapling process to know you don’t have to worry about the foam itself sliding around.