Condensations in which the active hydrogen compound is a $\beta$ -keto ester or a $\beta$ -diketone often yield products that result from one molecule of aldehyde or ketone and two molecules of the active methylene component, as shown below. Suggest a reasonable mechanism that accounts for the formation of these products.
(FIGURE CAN'T COPY)