well, we had a cylinder with 7mL of water, in the rock goes and kaboom the volume for the cylinder and its contents is 9 mL, well, the displaced water from the rock is equivalent to its volume, as Archimedes would properly point out, so since it was 7mL and now is 9mL well, the extra 2mL is the volume of the rock :).
sidenote: Archimedes is Da Bomb!!!!
now, we know the rock weights 24 grams, and we also know its volume is 2mL, so its density is simply g/mL, or