Hi I wasn't sure about the math for this. If I have shield oath and rampart on at the same time, how do they stack?

1. 20% +20% = 40% total damage reduction
2. 20% + 16% = 36% total damage reduction