A 7 eV photon is used to eject an electron from a metal. The most energetic ejected electron can be brought to rest by a 4-volt electrical potential. What is the work function of the metal?