White light is passed through the double slit and interference pattern is observed on a screen 2.5 m away. The separation between the slits is 0.5 mm. The first violet and red fringes are formed at distances of 2 mm and 3.5 mm away from the central white fringe respectively. Calculate wavelengths of red and violet light.