You have two unknowns and two equations describing their dependence: one is the Nernst equation (E=0), the other is stoichiometry - one metal gets reduced, the other oxidized, reaction equation will tell you how amounts of reacting metals are related.