The ratio of wavelengths of the last line of Balmer series and the last line of Lyman series is
Wavelength in Lyman series is given by 1λ=RZ2(1−1n2)
For last line, n→∞ so 1λL=RZ2
Wavelength in Balmer series is given by 1λ=RZ2(122−1n2)
For last line n→∞ so 1λB=RZ24
Therefore the required ratio is λBλL=41