The nice thing about using dBm for RF measurements is that all you need to do is add and subtract. So, if you have a 100W RF transmitter (which is 50 dBm) and the maximum you want to feed into your Signal Hound is 10 dBm then you need a 40 dB attenuator. Note that a 100W 40dB attenuator will be a very large and heavy device so most engineers use something called a power tap that takes a sample of the signal, with a 50 dBm input 40 dBm will go to output 1 (then on to an antenna or a dummy load) and 10 dBm will go to your test equipment.
Attenuators in series add, so in your example 2 x 20 dB attenuators in series will give 40 dB of attenuation.
A figure quoted in dBm means that it is relative to 1mW of RF. So:
0 dBm 1mW
3 dBm 2mW
6 dBm 4mW
10 dBm 10mW
20 dBm 100mW
So, using this chart you can say that there is 90 mW of gain between a 10 mW input and a 100 mW output OR 10 dB.
If you send me a PM with an email address I can send you a chart that compares dBm, Volts P-P (for a scope), Volts RMS and Power in Watts over a very wide range.