Tsk tsk. One doesn't learn physics by memorizing formulas. What you should be learning here is the physics, not the formulas. So what's the physics?
Simple... I mean it... simple. It's this.
Photonic energy is proportional to the frequency of the photon. That's it. That's all there is. Now knowing the physics you can write:
E ~ f, where E is energy and f is frequency. The ~ means "is proportional to."
Where there is a proportional relationship, there must be a constant of proportionality. In this case, h, Plank's Constant, is that constant of proportionality to make the proportional relationship (with the ~) into an actual equation (with a =). So E ~ f becomes E = hf and there's your first equation, which we derived from the physics.
But this is about frequency, not wavelength, which is the given. So more physics here.
For electro magnetic fields the speed of the photons is fixed at C, the speed of light in a vacuum. So if the distance a photon travels is its own wavelength, L, we can write distance = speed X time traveled = CT = L; where T = 1/f is the time to travel one wavelength and we call that the period.
So now we have E = hf = hC/L because C/L = 1/T = f from CT = L.
And there you are. By knowing the physics, we derived E = hC/L; where you can look up h and C, and L = 5.3E-7 m is given. E will be in Joules when h and C are in kms SI units consistent with the wavelength in meters.