What is allowed to exchange, however, is energy. So energy flows into the system or it can flow out of the system. In an isolated system, mass and energy is not allowed to flow anywhere. So everything remains constant. In an open system, both matter and energy is allowed to exchange. Okay?