@billnotgatez, I am sorry I didnt mention my attempt at the solution. Will keep this in my mind from now on!
Here's what I did:
λ1=2357 A, λ2=1849 A, Φ= work function
hc/λ1= 2.6 + Φ
hc/λ2= 4.04 + Φ
Are these both equations correct? I will need to change the wavelength to metres, but do I need to convert the value of the stopping potential, which are given in Joules?