>>13199718He bought for 60 and sold for 70
He bought for 80 and sold for 90
The two sets of actions do not interact with each other in any way.
He made $10 twice. So he made $20
He COULD have made more money if he sold it for 90 the first time, but that's irrelevant, it's not asking how much money he missed out on.