How to make a two-reward recipe

how to make a two-reward recipe.

how to separate objects in a factory (or ???).
for example, we have limestone and process it into sand and stones.
is it possible to implement and what classes

I think the only way is to create your own machine to support that, tutorial for making a machine is in the docs