Let's suppose we have a raging Goliath Barbarian. They are hit by an attack that deals 36 slashing damage, and then, as a reaction, they use Stone's Endurance. Since they are raging, they have resistance to that damage type, so it should be halved. In this case, how would the damage be reduced? Would the resistance or the racial feature be applied first?
Considering they roll a 7 on the d12 + 3 (its CON modifier), I can imagine the following two options:
First case scenario, the resistance is applied first, reducing the damage from 36 to 18. It is then subtracted by 10 because of its racial feature, resulting in 8 slashing damage taken.
Second case scenario, it first subtracts 10 from the total 36 slashing damage, resulting in 26. The damage is then halved because of their resistance, which ends up being 13 slashing damage taken.