When a certain photoelectric material is illuminated with red light $(\lambda=700 \mathrm{nm})$ and then blue light $(\lambda=400 \mathrm{nm}),$ it is found that the maximum kinetic energy of the photoelectrons resulting from the blue light is twice that from red light. What is the work function of the material?