Explain how substitution demonstrated both justice and mercy.