This kind of issues can solved through Custom table and Pricing Routines
1) Create one custom table with Material group comibation
In that table we need to maintain eligible Material groups.
2) Create on Routine in VOFM and ask ABAPer to keep the logic in that Routine
3) Create one Promotional discount condition type and assign the above routine in the pricing procedure.