Calculate \[\Delta \mathrm{G}^{\circ}\] for the reaction \[\mathrm{Mg}_{(\mathrm{s})}+\mathrm{Sn}_{(\mathrm{aq})}^{++} \longrightarrow \mathrm{Mg}_{(\mathrm{aq})}^{++}+\mathrm{Sn}_{(\mathrm{s})}\] if \[\mathrm{E}_{\text {cell }}^0\] is \[2.23 \mathrm{~V}\].
Which from following equations is correct for relation between standard cell potential and equilibrium constant?