The kinetic theory of gases is a key idea in physics. It shows how gas particles move randomly and bump…