From a logical point of view it's a very simple question
Let's put it this way
600-500=100 This is the first time he bought and sold the pig, how much did he lose
300-200=100 This is the second time he lost money
100+100=200 That's the total **** loss. That's the total **** loss.