This question involves you using the following relationships: 1 nm =10-9 m; ν = c /λ and E = hν
λ is the wavelength; ν is the frequency; h - Planck's constant = 6.63 x 10-34 J·sec; c - speed of light =3.00 x 108m/sec.
Using this information you should be able to calculate the answer. The only other thing to pay attention to is the significant figures reported. You are given 510. nanometer (nm) which has 3 sig. fig so your answers need to have 3 sig. figs!
Hope this helps!