Mr. Ledger buys a box of 24 donuts for a lesson in his math class about circumference. Write an equation for the number of donuts y that are left at the end of the day when x donuts are used during the lesson.