My question is: There are 42 apples in a crate. 12 crates of apples were delivered to a factory. 4 apples were rotten and had to be thrown away. The remaining apples were packed into boxes that could fit 10 apples each. How many boxes of apples were there? Your thoughts:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
The total number of apples delivered was 42 × 12 = 504. There are 504 - 4 = 500 apples were left remaining. Finally, there are 500 ÷ 10 = 50 boxes of apples. The final answer: 50.