\(TC:\)
\(2p_A+n_A+2p_B+n_B=94\)
\(\Leftrightarrow2\left(p_A+p_B\right)+\left(n_A+n_B\right)=94\left(1\right)\)
\(2\left(p_A+p_B\right)-\left(n_A+n_B\right)=30\left(2\right)\)
\(\left(1\right),\left(2\right):\)
\(p_A+p_B=31\left(3\right)\)
\(n_A+n_B=32\)
\(2p_B-2p_A=14\left(4\right)\)
\(\left(3\right),\left(4\right):\)
\(p_A=12\)
\(p_B=19\)
\(A:Mg\)
\(B:K\)