To solve this problem it is necessary to apply the Bragg's law which allows to study the directions in which the diffraction of X-rays on the surface of a crystal produces constructive interference.
Extrapolating the equation and obtaining its mathematical meaning we have to

Where
d = Separation between slits
wavelength
n = Order number representing the number of repetition of the spectrum
Angle between the source and the screen at this case are perpendicular
At the same time we have that the grating for this case is given as

Using the previous equation to find the order number we have that

For the first wavelength



For the second wavelength



Therefore the number of orders in which the visible spectrum exists is



Therefore the number of order can one see the entire visible spectrum 3.