An unknown sample of metal had a mass of 240.0 grams. It displaced 30.0 mL of water when placed into a graduated cylinder. What is the density of the metal?