 Observing the molecules on both sides, an imaginary demon guards a trapdoor between the two parts.When a faster-than-average molecule from "A" flies towards the trapdoor, the demon opens it, and the molecule will fly from "A" to "B".Likewise, when a slower-than-average molecule from "B" flies towards the trapdoor, the demon will let it pass from "B" to "A".