It depends on the food you have eaten. Some foods are more difficult to digest than others, and will take longer to pass through your digestive tract. Once your waste has accumulated in your colon and formed a semi-solid/solid stool, then it's likely no material can make it past that, or combine with it, but until that point, it makes sense that material from items could intermingle and get jumbled up.
The following provides rough guidelines for how long it can take to digest food: <