This is a strange question, it might be easy for all you math wizards or it even may be impossible. If you don't understand what I mean let me know so I can change the way I post the question.
Product A can be built using Product B.
To get Product B I have to transform product C or Product D.
I have a 50% chance to get product B by transforming product C and 25% to get product B by transforming product D.
Is there any way to predict the cost of production for Product A knowing the price for Product C and D
Edit 1 There are no transformation costs, only the costs for the materials