Mary puts 50g of A into container X and another 50g of A into container Y. She found that the volume of A in containers X and Y are the same. What state of matter can A be?

Solid or liquid. A gas would adjust to fill the volumes of the containers.