The potential of a conducting sphere is $V = kQ/R$. If the potentials are equal, $V_1 = V_2$, then $kQ_1/R_1 = kQ_2/R_2$. This simplifies to $Q_1/Q_2 = R_1/R_2$. The ratio of their charges is $R_1/R_2$.