Given data,
Mass of the foam.
[tex]M=100\text{ g}[/tex]Desnity of foam.
[tex]\text{Density}=0.25g/cm^3[/tex]Consider the formual for volume.
[tex]\text{volume}=\frac{mass}{\text{density}}[/tex]Substitute the given values to calculate the volume of the foam.
[tex]\begin{gathered} \text{volume}=\frac{100\text{ g}}{0.25g/cm^3} \\ \text{volume}=400cm^3 \end{gathered}[/tex]Therefore, the volume of the foam is
[tex]\text{volume}=400cm^3[/tex]