Given. Film thickness $z=4$ mm $=0.004$ m; boundary 1 is 12 wt% HCl ($\rho_1=1060.7$ kg/m³), boundary 2 is 4 wt% HCl ($\rho_2=1020.15$ kg/m³); $D_{AB}=2.5\times10^{-9}$ m²/s; water ($B$) is stagnant (non-diffusing). $M_{\text{HCl}}=36.46$, $M_{\text{H}_2\text{O}}=18.02$ g/mol.
Quantity
Value
Film thickness $z$
0.004 m
Boundary 1
12 wt% HCl, $\rho=1060.7$ kg/m³
Boundary 2
4 wt% HCl, $\rho=1020.15$ kg/m³
Diffusivity $D_{AB}$
$2.5\times10^{-9}$ m²/s
Find. The molar diffusion flux $N_A$ of HCl through the stagnant film.
Figure 4 — HCl diffusing through the stagnant liquid water film. The mole fraction falls from $x_{A1}=0.0631$ at boundary 1 to $x_{A2}=0.0202$ at boundary 2 over 4 mm; because water does not diffuse, a small counter-drift correction $x_{BM}$ applies (diffusion of $A$ through stagnant $B$).
Approach. Convert each wall composition from weight fraction to mole fraction and to molar concentration (using the solution density and mean molar mass), then apply the diffusion-through-stagnant-$B$ flux relation with the log-mean solvent fraction.
Wall mole fractions. Per 100 g of solution, at boundary 1: $n_A=12/36.46=0.329$, $n_B=88/18.02=4.884$, so $x_{A1}=0.329/5.213=\boxed{0.0631}$. At boundary 2: $n_A=4/36.46=0.110$, $n_B=96/18.02=5.328$, so $x_{A2}=0.110/5.438=0.0202$.
Molar concentration of the solution. The mean molar mass is $M=100/(n_A+n_B)$, so $c=\rho/M$. At the two faces $c_1=1060.7/19.18=55.29$ and $c_2=1020.15/18.39=55.47$ kmol/m³; the mean is $c=55.4\ \text{kmol/m}^3$ (note $c$ comes from the liquid density, not $P/RT$).
Log-mean stagnant-solvent fraction. With $x_{B1}=0.9369$, $x_{B2}=0.9798$,$$x_{BM}=\frac{x_{B2}-x_{B1}}{\ln(x_{B2}/x_{B1})}=0.958.$$Because the solution is dilute, this correction is only about 4% above unity.
Flux (diffusion of $A$ through stagnant $B$).$$N_A=\frac{D_{AB}\,c\,(x_{A1}-x_{A2})}{z\,x_{BM}}=\frac{(2.5\times10^{-9})(55.4)(0.0631-0.0202)}{(0.004)(0.958)}=\boxed{1.55\times10^{-6}\ \text{kmol/m}^2\text{s}}.$$