Instead of remembering which one to put on top, it's easier to just convert the question stem into an equation.
Ratio of A-to-B means A/B.
Therefore, ratio of [H+] at pH 6 (highest activity) to [H+] at pH 4 (lowest activity) is given by the pH equation. That is, 10^-pH = [H+].
Thus, this reduces to 10^-6/10^-4, which if you remember the rules for division of exponentials, is 10^-2.