what happen to the pressure of a gas inside a container if the temperature of the gas decreases?

Charles law. You need to memorize that now.

P=k*temp

When the temperature of a gas inside a container decreases, the pressure of the gas also decreases. This phenomenon is explained by the ideal gas law, which states that the pressure of an ideal gas is directly proportional to its temperature.

To understand this relationship, we can use Charles's Law, which states that the volume of an ideal gas is directly proportional to its temperature, assuming the number of gas particles and pressure remain constant. As the temperature decreases, the gas particles lose energy and move with lower average kinetic energy. Consequently, the gas particles’ collisions with the container walls become less frequent and forceful, resulting in a decrease in pressure.

This can be mathematically represented using the ideal gas law equation:

P₁ / T₁ = P₂ / T₂

where P₁ and T₁ are the initial pressure and temperature respectively, and P₂ and T₂ represent the final pressure and temperature.

So, when the temperature (T₂) decreases, the pressure (P₂) also decreases if other factors like the number of gas particles and volume remain constant.