Solution (source code)

= Solution

Let $\xi$ be the forward reaction extent. Then
$$
dN_A=-d\xi,\qquad dN_B=2d\xi,\qquad dN_C=d\xi.
$$
At fixed $T,p$,
$$
dG=\mu_A\,dN_A+\mu_B\,dN_B+\mu_C\,dN_C
=(-\mu_A+2\mu_B+\mu_C)d\xi.
$$
Minimization with respect to $\xi$ gives the <chemical-potential balance for a reaction>
$$
\boxed{\mu_A=2\mu_B+\mu_C}.
$$