The subordinate clause is "When the delivery man arrives" because 1. it is introduced by "when" and 2. we can ask question to the main clause about this one.
Answer:
The king wanted to punish the merchant because the wall of his house and it fell on the thief killing him. Since the merchant had inherited his father's wealth he inherited his sins too therefore, he should be punished
Explanation: