I would defer to the company's accountant, but if the consolidated company files a consolidated tax return, then any or all companies within the control group can contribute whatever amounts. However, if A & B file separate tax returns I believe each must contribute and deduct their respective amounts. At least that is my recollection, but again, a qualified tax accountant for the company(ies) should be able to answer definitively.