Here is a basic illustration of a multi input main gearbox with an accessory gearbox. This was used on the AH-64A. The engine inputs are are opposite sides. The accessory gearbox is actually separate from the main, this allows the generators, hyd pumps, etc. to be driven by either main gearbox or the APU. Hope this helps.