Question:
Jun Yang had 5 boxes each containing an equal number of apples and 7 empty boxes as shown below. He removed 21 apples from each of the 5 boxes and packed them into 7 empty boxes. After that, each of the 11 boxes had the same number apples except for the 12th box which had only 3 apples. How many apples were there in all the 12 boxes altogether?

Solution:
