Difficult# Second Longest Wavelength

SATPHY-KAJJQE

The diagram below represents the energy states for a particular atom. The energies $W, X, Y$, and $Z$ are all positive and are in Joules.

What is an expression for the second longest wavelength (in meters) that can be emitted by this atom when an electron falls from some higher energy state into the ground state (where $n = 1$) in terms of the numbers and/or symbols in the diagram and fundamental constants (like the speed of light, $c$, and Planck's constant, h)?