Let s, j, m be the number of apples Sarah, John, Mona bought.
Sarah bought 5 more apples than John did. Thus;

Also, Mona bought 4 less than Sarah. Thus;

Expressing m in term of j, we have;

Relating equation 1 and equation 3, we have;

From equation 3, we have;

Expressing equation 1 in term of j, we have;

Thus, Sarah bought the most.
From equation 3, we can deduce that;

Thus, John bought the least.