Jack bought 24 apples at the farm stand. He divided the apples between his brother, his friend, and himself in a ratio of 2:1:3. How many apples did each person receive?