If you have a vending machine that distributes beverages on the left side and cooks and distributes pizza on the other. Could this be patent? even though vending machines have already been patented distributing separate products
There was a famous case regarding putting an eraser at the end of a pencil. It was granted a patent by the USPTO but disallowed by the Supreme Court in the 1800's. The eraser didn't do anything different becasue it was attached to a pencil and the pencil didn't do anything different becasue it was attached to an eraser.
We do not use the term synergy in patent law but you need some functional interaction between the two old things.
And I would guess a search of google patents would turn one up that was already patented or applied for. This patent US7762181B2 Customised nutritional food and beverage dispensing system is more than your one sentence idea. What is patented is one, fairly general, way that such a machine might work. If you have a different, not obvious, idea as to how such a machine might work you might have a patentable invention.