Following the earlier comparison, the wholesale food distributor also managed to sell 2458 boxes of mangoes. After selling the extra boxes of oranges compared to apples, and the mangoes, how many total boxes of these fruits did they sell?