First calculate the volume of the rectangular prism by multiplying its length, width and height. The volume of the prism is 8 cm^3. Since density is known to be mass over volume, just multiply the given density with the volume. The mass of the prism then is 960 grams.