The surface of a metal is illuminated alternately with photons of energies $E_1 = 4\,\mathrm{eV}$ and $E_2 = 2.5\,\mathrm{eV}$ respectively. The ratio of maximum speeds of the photoelectrons emitted in the two cases is 2. The work function of the metal in (eV) is $\_\_\_\_$