Mix item button

Hi,
I need to add a automation command for mixing item, especially for the drinks item.
But the price of mixed item should be like this.
If A , B n C are items with prices 10,30, n 15 respectively, the final price of mixed item should be 30. That means final price of mixed item should be the price of the product having biggest price.
Is there any way??
@emre

Please don’t tag people like that to try and get attention.
Posts like that generally discourage replies from everyone else and emre is not a personal assistant and has better things to do which is why the regulars like q, kendash and myself to name a few try and cover the majority of questions to free him up on development and improvements rather than as swearing all the questions on the forum.
Emre probably isn’t the best person to ask in all honesty, kendash has a good grasp on combo setup which might be aplyable to that model.

If I was trying something like that, depending on the terms… I’m guessing it’s working along the lines of buy 3 and get the cheapest free expect its pay for the more expensive one. Would be to try and work a report order details expression and a bottle line discount calculation to adjust total price accordingly but it really would depend on your terms and how multiple sets of 3 are handled.

But how to do that? How to do a calculation like that?