Shanon capacity
where C is channel capacity
B is bandwidth
S/N is signal to noise ratio
here B=6-5=1MHZ
C=log(1+24)=4.64Mbps
The shanon capacity gives us the upper limit and nyquist theorem helps us to find number of signal levels
for better performance we choose something lower capacity since higher is 4.64 we take 4Mbps
C=2*B* log L base2
4=2*1*logLbase2
so L=4
where L is number of signal levels