I know that $\text{dB}$ actually represents dimensionless value, meaning, it is the ratio of two values that have the same dimension, for example:
$$p_1=10\log\frac{P_1}{P_0} $$
This can be expressed in decibels if $P_0=1\text{ W}$, however, if $P_0=1\text{ mW}$ then unit we use is $\text{dBm}$.
I am wondering, are we allowed to subtract and add values if one of them is in $\text{dB}$ and another is $\text{dBm}$ ?
The reason i am asking this is because i've found an example in one workbook where two values are summed up where the first one was in $\text{dB}$ and another $\text{dBm}$, however, i don't understand how's that possible.
For example, if we say $p_1=10\text{ dB}$ and $p_2=20\text{ dBm}$ if we sum these two up, we end up with $30$ but how is this possible? It's $30$ what? $\text{dB}$ or $\text{dBm}$? I hope someone could clarify me this. Any help appreciated!