Analysis of the meaning of the problem: the rest is less than the one bought 12. These 12 are eaten by mom and dad and Xiaoling. 12 just subtract the number of times mom and dad eat, and the rest is the number of times Xiaoling eats.
Formula: 12-3-5 = 4 (Xiaoling ate 4)