https://www.gregmat.com/quizzes/quiz/algebra-fundamentals-quiz-2-awdv (Question 11)
I think the answer is wrong. It says that the naughty elf starts to work after the good elf worked 8 hours. So, he has to destroy the 320 toys created in the remaining 12 hours. So the equation should be: (x-40)*12=320