Given:
Wavelengths of the source of light,
Separation between the slits,
Distance between screen and slit,
We know that the position of the first maximum is given by
So, the linear separation between the first maximum (next to the central maximum) corresponding to the two wavelengths = y2 − y1