From the figure describing photoelectric effect, we may infer correctly that
Stopping potential equals to maximum kinetic energy. Since stopping potential is varying linearly with the frequency, max. KE for both the metals also vary linearly with frequency.