Depth · one concept from first principles · step 2 of 4
Split buyers into only-coffee, only-cake, both
At a bazaar snack corner, a cup of coffee costs won and a slice of cake costs won, and anyone who buys both at once gets off the combined price. On the first day, people bought something at the snack corner, and total sales were won. people bought coffee, and no one bought more than one of the same item. How many people bought cake?