Choosing a Sampling Rate and a Cutoff frequency
The question states 


  … generate … digitally … same sample rate to generate a 20 kHz tone.


So, you want to digitally create a 20 kHz tone, too.  You hence need to have a sample rate that is sufficient for 20 kHz.