Thank you guys i looked into the solutions manual for hints.
The "trick" basically is:
- i know that the total molecules will not change (no leakage) after equalizing, so i can write:
n_{total, closed} = n_{total, equalized}
which can be written as:
n_{A,closed} + n_{B,closed} =...