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?