A solid has a mass of 180 grams and a volume of 30 cubic centimeters. What is its density?