A change from 20 to 40 is a 100% increase because the original number was 20. Then, 20 was added to that. So, you are adding the whole number (100%) to itself.
A change from 40 to 20 is a 50% decrease because 40 is being reduced to half of itself (50%).
I hope this helps!