Answer
From A to B
Explanation
from the spectrum of visible light ,the production red light has the lowest energy difference as the wavelength is shorter and frequency lower
on the other hand, blue light is produced when the energy difference is higher.