They get interest from Person B, and when the short contract is up, they can force Person B (or more accurately their broker who passes the price on) to buy a replacement stock, regardless of the price. Alternatively, they can attempt to open another short contract, paying more interest to have continue to borrow the stock. Sooner or later, however, person B is legally and contractually required to to return an identical share to person A.