It is usual to arrange matters so that the trailing locomotive supplies less power, i.e. that the locomotive at the front does more pulling than the locomotive at the rear does pushing. Having an independent locomotive, as opposed to a power car at each end, is also known in the railway world as a top and tail.