A thin piece of metal of uniform density in the shape of a square with side length cm weighs grams. A second piece of the same type of metal, with the same thickness, also in the shape of a square, has a side length of cm. Which of the following is closest to the weight, in grams, of the second piece?
30.0
35.0
40.0
45.0
50.0