From the way you've explained that, it seems as if the first item A is 100 and any subsequent item A, regardless of attribute, is 50.

If that's correct, why not just use quantity discounts?

If not, I recommend you contact ThatSoftwareGuy.com who is the discount specialist