For a closed system, you need two things: 1) a conservation of mass within the boundaries of the system 2) the ability to freely exchange energy to & from the "closed" system with a surrounding external system
So, the answer is <u><em>never</em></u>, since your defining the "system" as the water within the bathtub, and an open bathtub is exposed to evaporation, which is not conserving mass within the defined "system".
This means for every number of Carbon (C) atoms, there are twice as many Hydrogen (H) atoms with an additional two added onto that.
Therefore, if there is one Carbon Atom, and we multiply that by two, and then add an additional two, we get 4 Hydrogen atoms, so CH4, which is our first Formulae
Secondly, if we have eight Carbon Atoms, and we multiple that by two (16), and then add an additional two, we get 18 Hydrogen atoms, so C8H18, which is our second Formulae
The other Formulas do not follow this 'General Formula'