You borrow sh10000
You buy a T-shirt for sh9700 + you keep sh100 from the change = sh9800
You return sh200
So, you owe them sh9800. (period)
Why would you count the sh100, which you kept, twice?
Seriously? You copied my answer and posted it as a question. Would you please elaborate on that?
https://www.question.com/mental-mathematics-you-saw-a-t-shirt-of-shs-10000-1250648.html