So many variables.
In a typical vertical stack, it will depend on where the connectors are on each of the components. There's no standard, for instance, as to whether input for A/C is on the left, right, or middle. If the components are closely stacked, there's little you can do...