We can create a custom app, but the logic should be like this:
Total A+B = $x in case they buy both A + B, and the original total is $y for example.
So we need to create an amount account for $y - $x = $discount.
That's my idea.
But notice that we can't apply multiple discounts at the same time (except for PLUS version)