Gina was given an irregularly shaped piece of metal and was told that the density of the metal was 10 g/cm3. She measured the mass of the piece to be 270 g. What was the volume of the piece of metal Gina was given ?