Let the main current be I. Current through galvanometer I_g = 0.02I. Current through shunt I_s = 0.98I. Since the voltage is the same, I_g * G = I_s * S. (0.02I) * G = (0.98I) * S. S = (0.02/0.98) * G = G/49.