You can't predict internal moderation because BOS uses a polynomial graph thing to map marks onto, and then they read off marks from there. We can only estimate.
In your case, person A gets a moderated internal mark of 89 and an external mark of 83.
Student B gets an 89 exam mark but...