(c) The equation of $n$th principal maxima for wavelength $\lambda$ is given by
$(a + b)\sin\theta = n\lambda$
Where $a\ $is the width of transparent portion and $b$ is that of opaque portion. The width $(a + b)$ is called the grating element.
The spectral lines will overlap, $ie$, they will have the same angle of diffraction of
$\lambda_{1} = \lambda_{2}$
When a line of wavelength $\lambda_{1}$ in order $n_{1}$ coincides with a line of unknown wavelength $\lambda_{2}$ in order $n_{2},\ $then
$n_{2}\lambda_{2} = n_{1}\lambda_{1}$
Or $\frac{\lambda_{1}}{\lambda_{2}} = \frac{n_{2}}{n_{1}}$