Chemistry
Answer
According to the kinetic theory of gases, the number of particles and their average kinetic energy in a given mass of gas remain constant. When the volume of a gas is halved, the particles have less space to move, resulting in double the number of molecules striking the container walls per unit area and thus doubling the pressure. Conversely, doubling the volume gives the particles more space, reducing the number of molecules striking the walls per unit area by half and halving the pressure. This demonstrates Boyle's law: as pressure increases, the volume of a gas decreases at a constant temperature.