Acetone is a relatively non-polar solvent (as compared to water, which is highly polar), and Styrofoam is made from polystyrene and foam. Due to their similar polarities, acetone can dissolve the carbon-hydrogen bonds of Styrofoam.