The noise figure is 5 dB if the signal-to-noise ratio at input is 40 dB and signal-to-noise ratio at output is 35 dB.
We achieve the above result only if the SNR values are expressed in decibels. Instead, if the values were expressed in unitless ratios, then the resultant noise figure would be 0.5799.
Read more