Answer:
They are both correct.
Step-by-step explanation:
The density of an object is defined as the ratio of its mass to its volume. This implies that the density of the object is both proportional to the mass and also to the volume of the object. John only mentioned mass which is correct. Linda mentioned the second variable on which density depends which is the volume of the object.
Hence considering the both statements objectively, one can say that they are both correct.