$${M-m = -2,5 \log \frac{L}{l} = -2,5 \left( \frac{d}{10} \right)^2 = -5 \log \frac{d}{10}}$$